Bug 167232 - Resizing the main window changes the currently displayed page of a pdf document
Summary: Resizing the main window changes the currently displayed page of a pdf document
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.6.90
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 191607 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-22 18:07 UTC by Christoph Burger-Scheidlin
Modified: 2020-12-20 04:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Burger-Scheidlin 2008-07-22 18:08:09 UTC
Version:           0.6.90 (using KDE 4.0.98)
Installed from:    Ubuntu Packages
OS:                Linux

When resizing the main window of a pdf file, okular changes the currently displayed page, increasing it when the window gets smaller and decreasing it when the window gets bigger.

I have used several pdfs to test this, but will explain this bug with http://stderr.org/doc/pbuilder/pbuilder-doc.pdf which contains 28 pages. My view mode is continuous with single pages. The zoom is set to "Fit Page" and the content side bar is open.

1. Open the document.
2. Maximize the okular window (or at least make it very large)
3. Scroll down to a page close to the end, say 25
4. Restore the okular window (or make it significantly smaller)

- This causes okular to now display page 28, the last page in the document

5. Maximize the okular window again (or increase the size again)

- This causes okular to now display page 16 (this is somewhat dependent on the difference between maximized size and initial size if the non-maximized window is only slightly smaller than my screen, okular jumps to page 26.

Note that this effect only occurs with high page numbers, it will not work on the first pages. Unfortunately I could not determine the exact cut-off.

My hunch is that it is related to the size of the scroll bar in the smaller window, such that okular tries to place the scroller at the same pixel offset that it was at before and thus reaches a different page. I have not looked at the code though and this is purely speculation.
Comment 1 Pino Toscano 2009-05-04 19:53:45 UTC
*** Bug 191607 has been marked as a duplicate of this bug. ***
Comment 2 Justin Zobel 2020-11-20 01:09:37 UTC
Thanks for the report Christoph.

I know it's been a long time since this bug was reported but I've tested this against Okular 1.11.3 and I can't replicate this issue.

Can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved. I'm setting status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 3 Bug Janitor Service 2020-12-05 04:33:55 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2020-12-20 04:34:29 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!