okular/autotests/data
Tobias Deiminger a29e4eaff5 Fix inconsistent viewport positioning in PageView
Summary:
This diff unifies the calculation of the viewport position from a given DocumentViewport. PageView::notifyViewportChanged and PageView::slotRelayoutPages used to handle it differntly, which resulted in viewport jumps for no reason.

It happened in various situations, e.g. when jumping to a page using the footer page navigation, or when reloading the document after presentation mode left, or when resizing the main window after presentation mode left.

The diff selects the notifyViewportChanged way (align viewport top border with page top margin) as golden behavior in case of rePos.enabled == false.

BUGS: 357958
CCBUG: 341939
CCBUG: 400890

341939 and 400890 are fixed partially. These two still suffer from a minor displacement that happens when finished signal arrives from pixmap generation thread.

Test Plan:
- When using the footer page navigation to jump to different pages, new page top is always algined with viewport top.
- After changing page with footer page navigation, press F5 to reload. Page top stays aligned with viewport top.
- When exiting presentation mode, and touching the file, page top stays aligned with viewport top.
- When exiting presentation mode, and changing main window size, page top stays aligned with viewport top.

Reviewers: #okular, sander

Reviewed By: sander

Subscribers: ngraham, sander, aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D16941
2018-11-29 21:41:43 +01:00
..
additionalFormActions.pdf Add test for additional form actions 2018-05-30 10:05:21 +02:00
checkbox_ro.pdf Add test for read only set and checkbox calculate 2018-03-20 23:19:29 +01:00
contents.epub Rename to autotests 2014-10-19 18:21:07 +02:00
file1-docdata.xml This test file was lost at some point 2017-09-11 19:52:04 +02:00
file1.pdf Rename to autotests 2014-10-19 18:21:07 +02:00
file1.pdf.gz Add pdf.gz file save test 2018-02-06 00:32:15 +01:00
file2.pdf Make parttest pass by adding the file that it wants to open 2015-11-28 16:04:57 +00:00
formSamples.pdf Rename to autotests 2014-10-19 18:21:07 +02:00
pdf_with_links.pdf Interact with hyperlinks in TextSelect mode 2017-10-11 15:03:36 +02:00
potato.jpg Add missing test file 2017-11-13 10:16:25 +01:00
simple-multipage.pdf Fix inconsistent viewport positioning in PageView 2018-11-29 21:41:43 +01:00
simple-multipage.tex Fix inconsistent viewport positioning in PageView 2018-11-29 21:41:43 +01:00
simpleCalculate.pdf Add autotest for AFSimple_Calculate script 2018-02-22 00:13:12 +01:00
synctextest.tex Rename to autotests 2014-10-19 18:21:07 +02:00
tocreload.pdf Rename to autotests 2014-10-19 18:21:07 +02:00
visibilitytest.pdf Add test for visibility changes 2018-04-23 23:58:11 +02:00