Bug 205836

Summary: fit page does not work properly anymore
Product: [Applications] okular Reporter: Stefan Endrullis <stefan>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: qbast
Priority: NOR    
Version: 0.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: effected PDF file

Description Stefan Endrullis 2009-08-31 22:04:55 UTC
Version:           0.9 (using KDE 4.3.0)
OS:                Linux
Installed from:    Ubuntu Packages

In okular 0.8.2 the "fit page" zoom worked perfectly. You could change the pages and they were always centered horizontal and vertical.

But in okular 0.9 this doesn't work properly anymore. When you change the page it is not vertically centered anymore. Seems there is a problem with the calculation of the page height now.
Comment 1 Jakub Stachowski 2009-08-31 22:43:55 UTC
Could you attach PDF that shows this bug?
Comment 2 Stefan Endrullis 2009-09-01 11:37:30 UTC
Created attachment 36610 [details]
effected PDF file

OK, here is an example PDF effected by this bug.

I tested it again and found out that the bug only appears when the window is maximized. I determined the exact dimension of the windows by using xwininfo. Here are the results:
  Absolute upper-left X:  0
  Absolute upper-left Y:  23
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1440
  Height: 829
  Depth: 24
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+23  -0+23  -0-48  +0-48
  -geometry 1440x829+0+0
Comment 3 Albert Astals Cid 2009-10-05 22:34:04 UTC
Can you please write the exact steps you make to make fit to page fail?
Comment 4 Albert Astals Cid 2010-07-05 18:37:51 UTC
No info given in 9 months on how to reproduce the issue