Version: (using Devel) OS: Linux Installed from: Compiled sources Steps to reproduce 1. open a pdf document 2. Fit Width 3. Adjust the windows size so that the page nearly fits vertically fits horizontally. Expected behaviour: The scrollbar should be shown Actual behaviour: a) The scrollbar is shown and the page is zoomed out, b) Now the scrollbar is not needed anymore, therefore hidden and the page is zoomed in c) Now a scrollbar is needed again and added, so the page is zoomed out. d) same as b. This cycle continues forever
*** Bug 235276 has been marked as a duplicate of this bug. ***
*** Bug 235980 has been marked as a duplicate of this bug. ***
*** Bug 237132 has been marked as a duplicate of this bug. ***
*** Bug 237947 has been marked as a duplicate of this bug. ***
*** Bug 231956 has been marked as a duplicate of this bug. ***
Still same behaviour with Version 0.10.4 on KDE 4.4.4 using sidux package installed from Debian sid
I'm also seeing this behaviour with Okular 0.10.4 on KDE 4.4.4 (Fedora 13 x86_64 rpm)
Confirmed on current KDE trunk (kdegraphics r1139172). Does not just happen with PDF files, but with image files too. To reproduce: Grab the "Experience Freedom 4.4" image from www.kde.org ("slide4.jpg" size 830x300) and open it in Okular. Set the zoom to "Fit Width" and adjust the window width so that the display area (inside the window borders) is 835px wide (measured with KRuler). Resize the bottom upwards until the display area is 300px high. Continue resizing upwards very slowly until the oscillation starts, it seems to happen approximately over the range 306px to 312px.
We can reproduce it since it was reported, we just need a patch ;-)
Created attachment 49240 [details] The infinite resizement loop is fixed I would like to center the pages. but i need a hint on that one. I don't know how to do it without quite a bit of modifications. I was thinking to add a method in the pageViewItem class to relatively move the pages in the contentArea. (As we just have to move them on the X axis it would not be too difficult). I'm not sure that's the best idea. Any suggestion on how to center the pages properly?
SVN commit 1152393 by aacid: There was a change of behaviour somewhere and my infinite scrollbar bug prevention code got outdated, fix it Patch by mathieu lornac BUGS: 227153 M +4 -5 pageview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1152393
SVN commit 1152399 by aacid: Backport r1152393 | aacid | 2010-07-20 23:24:57 +0100 (Tue, 20 Jul 2010) | 4 lines There was a change of behaviour somewhere and my infinite scrollbar bug prevention code got outdated, fix it Patch by mathieu lornac BUGS: 227153 M +4 -5 pageview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1152399
I'm having an issue which may be related to this bug. It happens under the same circumstances as the original bug (i.e., when the window size is such that the document nearly fits both horizontally and vertically). I don't see the infinite loop problem, but I do see a loop where the document is resized a couple of times (maybe only twice). In the process, the vertical scrollbar appears and disappears. If I open a document with many pages and change pages in sequence, this happens for every page change, which is *very* annoying. Could this be related to the original bug? I'm using Okular 0.12.5 under KDE 4.6.5 in Debian Testing.