[Okular-devel] [Bug 223314] Document zooms in/out constantly when Okular is "snapped" using the Kwin effect

Justin Brown justin.brown1.1 at gmail.com
Fri Jan 22 17:18:44 CET 2010


https://bugs.kde.org/show_bug.cgi?id=223314





--- Comment #2 from Justin Brown <justin brown1 1 gmail com>  2010-01-22 17:18:41 ---
Thanks Albert. Okular is automatically set to "Fit Width." It opens in "fit
width" and stays in "fit width" after "snapping."

Here's my understanding of how Okular works. Okular is in a "main window" that
contains the entire application. Inside that there is a sub-window (some type
of qt widget probably) that shows the document. When Okular is set to "fit
width" the sub-window sets its scale (zoom) based on the size of the main
window. Either Okular or Kwin is sending/receiving a strange window size. If
you look at the output that I posted, you can see that Okular repeats messages
like:

okular(23703)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest:
sending request id=3 695x885 at 0 async == true
okular(23703)/okular (app) Okular::Document::requestPixmaps: request id=3
678x863 at 0
okular(23703)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest:
sending request id=3 678x863 at 0 async == true

It thinks that the window size is changing between two values. Because "fit
width" is dependent on the main window size, Okular is constantly re-scaling
the document based on those two window sizes. 

The interesting thing is that the main window is not changing in size. It just
thinks that it is. The Okular window is not moving/resizing.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list