[Okular-devel] [okular] [Bug 326844] Feature request: Include option to resize window to fit page

Saheb Preet Singh saheb.preet at gmail.com
Fri Jan 17 12:41:39 UTC 2014


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

--- Comment #11 from Saheb Preet Singh <saheb.preet at gmail.com> ---
(In reply to comment #10)
> The shell knows the current size of the part and also knows the total size
> of the window, so knowing the size the part wants to have should be able to
> determine what's the delta that has to add to account for menubar, etc, no?

Yes, shell knows the current size of the part, but i think part also includes
the width of the thumbnails, table of content etc. I used the viewport size of
the pageview instead in part.cpp and it is working fine now window is resizing
as desired. But now another problem, the page size i am using is retrieved from
allpagesize() in document class, which returns the size of the pages when they
are at 100% zoom level.
Now, when the page is not zoomed to 100%, how should i adjust size ??
Is there any way of knowing the current zoom level??? (As per my research the
current zoom level is stored in pageviewprivate class, which is private to
pageview class).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list