Bug 175514 - Document view has a too large minimum width
Summary: Document view has a too large minimum width
Status: RESOLVED DUPLICATE of bug 333349
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.7.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-18 21:09 UTC by Jon Severinsson
Modified: 2014-05-08 13:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Minimum width okular (110.25 KB, image/png)
2008-11-19 15:24 UTC, Jon Severinsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Severinsson 2008-11-18 21:09:18 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Ubuntu Packages

One a one has opened a document, the dokument view in okular has a minimum width of something like 900px, making the window a minimum of 975px wide with the navigation panel preset.

This is is somewhat problematiic on a 600px wide screen. ;-)

If one actually tries to use the navigation panel it makes the window a minimum of 1068px wide, which is slightly annoying, but not really problematic, even with a more "normal" screen width of 1024px. 

The ALT+mouse trick in all honour, but it does makes reading a book in okular somewhat harder than it ought to be.
Comment 1 Pino Toscano 2008-11-19 00:40:11 UTC
(In reply to comment #0)
> One a one has opened a document, the dokument view in okular has a minimum
> width of something like 900px, making the window a minimum of 975px wide with
> the navigation panel preset.

Not true I can make the Okular window about 400px wide.

It would be nice if you could attach a screenshot of the problem you see. Thanks!
Comment 2 Jon Severinsson 2008-11-19 15:24:39 UTC
Created attachment 28693 [details]
Minimum width okular

OK, seams minimum width varries from computer to computer and document to document. Right now I don't have access to that particular computer, but on this one the minimum width using the same document is 884px, and on the next computer over it is 788px. With another document the minimum width is 482px and 462px on the two diferent computers.

So something is obiously not right here, but it's not as simple as I first thought...

The screenshot is of the first commputer with the first document. Height can be reduced further, but width is at it's minimum.
Comment 3 Brad Hards 2008-11-20 04:12:11 UTC
What window managers (e.g. kwin) are you using on each machine?
Comment 4 Jon Severinsson 2008-11-20 09:59:23 UTC
I'm using kwin 4.1.3 on all three machines, two are running kubuntu 8.10 and one is running Gentoo. All are running Xorg 7.4. I'm using the Oxygen theme on all three.

They have different screens, with diffrerent resolutuions and dpi, if that has anything to do with it. Attaching relevant xrandr output from the machines mentioned in last post:

First machine (EeePC 901 running Kubuntu 8.10):
LVDS connected 1024x600+0+0 (normal left inverted right x axis y axis) 195mm x 113mm

Second machine (Home-built desktop with 19" monitor running Gentoo):
DVI-1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
Comment 5 Pino Toscano 2008-11-26 22:17:37 UTC
This happens only on particular PDF documents.
The reason is that those documents have not all the pages with the same size, so Okular shows the size of the current page on the right of the page navigation buttons.
Problem is, that we try to keep those navigation buttons horizontally centered, so in such case we add some space to equally compensate the size on the left too.
Another problem is that the Oxygen style uses to have buttons with a bigger (huge?) horizontal size, so they take more space than with most of other styles. (Running 'okular --style plastique somedocument.pdf' can give you the idea.)

While I agree this can be a problem with some (because it does not happen with any) PDF documents, I also don't have a clear idea about a good strategy to solve the problem (different than "get rid of that info", of course).
Comment 6 Jon Severinsson 2008-11-28 15:43:31 UTC
OK, now I understand why it happens, and why the minimum size differes from document to document (different text to display) and from computer to computer (different text sizes).

I still think it is something that needs to be fixed though, as fitting the window on the screeen imho is way more important than showing the page size...

As for a solution, what about only showing the information if it fitts in the widow width or shrink the text size as needed to make it fit. If that isn't feasible, the information could be put somewhere else instead, for example in a tool tip over the page in the thumbnails sidebar.
Comment 7 Albert Astals Cid 2014-05-08 13:27:01 UTC

*** This bug has been marked as a duplicate of bug 333349 ***