Bug 249164 - pagination step does not update upon resize
Summary: pagination step does not update upon resize
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.9.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 01:53 UTC by Christopher Yeleighton
Modified: 2010-09-14 13:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Numbered lines to test (8.31 KB, application/pdf)
2010-08-27 01:53 UTC, Christopher Yeleighton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Yeleighton 2010-08-27 01:53:15 UTC
Created attachment 50996 [details]
Numbered lines to test

Version:           0.9.5 (using KDE 4.3.5) 
OS:                Linux

The pagination step does not update when you resize the Okular window.  In particular, Okular skips portions of text when paging after making its window smaller.

Reproducible: Always

Steps to Reproduce:
1. Open the document 200.pdf.
2. Set magnification to 100%.
3. Resize the window to see lines 0..29.
4. Set magnification to 50%.
5. Set magnification to 100%.
6. Page down.
7. Page up.
8. Resize the window to see lines 0..19.
9. Page down.

Actual Results:  
4. lines 0..29.
5. lines 0..29.
6. lines 30..59.
7. lines 0..29.
8. lines 0..19.
9. lines 30..49.

Expected Results:  
9. lines 20..39.

OS: Linux (x86_64) release 2.6.31.12-0.2-desktop
Compiler: gcc

Workaround: switch magnification.
Comment 1 Christopher Yeleighton 2010-08-31 09:46:03 UTC
PageView overrides QScrollArea::resizeEvent.  QScrollArea::resizeEvent calls QScrollAreaPrivate::updateScrollBars, which in turn calls setPageStep as needed.  PageView::resizeEvent does not do that.
Comment 2 Albert Astals Cid 2010-09-04 01:29:38 UTC
Can not reproduce the problem using Okular 0.11 (KDE 4.5) can you please update and try again?
Comment 3 Christopher Yeleighton 2010-09-06 17:30:52 UTC
I cannot update because I am on EM64T; printed openSUSE 11.3 for x64 is not available in Poland, and Amazon UK wants £55 for it, which is rather much.
But I did build and run ~/kdesvn/build/kdegraphics/okular/shell/okular, version 0.11.80, and the pagination step still does not update upon resize.
Comment 4 Albert Astals Cid 2010-09-07 00:03:55 UTC
I didn't say you need to change your whole OS, you just need to update KDE, according to http://www.kde.org/info/4.5.1.php#binary there are KDE 4.5.1 updates for opensuse 11.2 (that i understand is what you are running)
Comment 5 Christopher Yeleighton 2010-09-07 20:10:37 UTC
(In reply to comment #4)
> I didn't say you need to change your whole OS, you just need to update KDE,
> according to http://www.kde.org/info/4.5.1.php#binary there are KDE 4.5.1
> updates for opensuse 11.2 (that i understand is what you are running)

The update [1] contains the following packages:

dolphin
kde4-filesystem
kdebase4
kdebase4-openSUSE
kdebase4-session
kdebase4-workspace
kdebase4-workspace-ksysguardd
kdepasswd
kdepimlibs4
kdialog
keditbookmarks
kfind
kmix
konqueror
konsole
kwin
kwrite
libakonadi4
libkdepimlibs4
libraptor1
libredland0
phonon-backend-xine
plasma-theme-aya
soprano-backend-redland
strigi

In particular, it does not contain Okular.

___
[1] <URL:http://ftp.halifax.rwth-aachen.de/opensuse/repositories/KDE:/Distro:/Factory/openSUSE_11.2/KDE4-BASIS.ymp>
Comment 6 Albert Astals Cid 2010-09-07 20:33:35 UTC
Then go to a opensuse forum and mailinglist and ask them, i don't use use opensuse.