Bug 183475 - Thumnail sidebar looses last position on resize
Summary: Thumnail sidebar looses last position on resize
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.8
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-06 20:31 UTC by Björn Streicher
Modified: 2009-02-07 20:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Streicher 2009-02-06 20:31:32 UTC
Version:           Version 0.8 Using KDE 4.2.00 (KDE 4.2.0) (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

When viewing a multi-page PDF in okular and scrolling in the thumbnail view to a different page than the one viewed currently and subsequently resize the thumbnail pane, okular forgets the page scrolled to and jumps to the one which is shown in the main view. Expected behaviour would be to stay on the page I have scrolled to.

Steps to reprodcue:

1. Open a multipage PDF in okular, lets say you view page 1
2. Open the thumbnail view in the sidebar
3. In the thumbnail sidebar. scroll to some page other than the one viewed in the main view (e.g. you scroll to page 340)
4. Resize the sidebar
-> thumbnail preview jumps to the page viewed in the main view (page 1) 
-> expected behaviour would be to stay on page 340)
Comment 1 Björn Streicher 2009-02-06 20:41:26 UTC
May be some additional use case information clarifies this issue:

Lets say I read a PDF book on page 340 and I'm viewing the thumbnail preview already in a pretty large size e.g. showing the table of contents (on page 5) of that book. Now I realize that some text in the thumbnail preview is too small to read so I resize the thumbnail to be able to read that text -> the focus of the thumbnail preview jumps back to page 340 and I have to scroll back to page 5.

I realize that scrolling further in the document changes the page previewed back to the page viewed in the main view, too. May be as a sort of RFE, it would be nice to make the thumbnail preview "sticky" so it doesn't scroll along with your scrolling in the main view.
Comment 2 Pino Toscano 2009-02-07 11:16:56 UTC
> I realize that scrolling further in the document changes the page previewed
> back to the page viewed in the main view, too. May be as a sort of RFE, [...]
... or not, given that we have the proper option for that since the KPDF times.
Comment 3 Björn Streicher 2009-02-07 11:37:50 UTC
Thanks for the pointer! I just found the corresponding option - never realized that there is such an option.

Unfortunately it is not possible to put this option in the (main or thumbnail preview) toolbar so you can change it more easily while reading the document to jump to the current page in the thumbnail view.

The resize-issue still persists, though, even when changing that option.
Comment 4 Pino Toscano 2009-02-07 17:13:11 UTC
(In reply to comment #3)
> Unfortunately it is not possible to put this option in the (main or thumbnail
> preview) toolbar so you can change it more easily while reading the document to
> jump to the current page in the thumbnail view.

Well, this looks like you want to hijack that option for something else ;)
That looks like you would need a small "go to current page" button in that pane.
Anyway, fix for the original problem coming in a minute.
Comment 5 Pino Toscano 2009-02-07 17:14:48 UTC
SVN commit 922822 by pino:

Properly keep the vertical position on horizontal resize.
BUG: 183475


 M  +4 -3      thumbnaillist.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=922822
Comment 6 Pino Toscano 2009-02-07 17:16:45 UTC
SVN commit 922824 by pino:

Backport: properly keep the vertical position on horizontal resize.
Will be in KDE 4.2.1
CCBUG: 183475


 M  +4 -3      thumbnaillist.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=922824
Comment 7 Björn Streicher 2009-02-07 20:31:31 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Unfortunately it is not possible to put this option in the (main or thumbnail
> > preview) toolbar so you can change it more easily while reading the document to
> > jump to the current page in the thumbnail view.
> 
> Well, this looks like you want to hijack that option for something else ;)
> That looks like you would need a small "go to current page" button in that
> pane.
> Anyway, fix for the original problem coming in a minute.
> 

Yes, that's about what I was thinking of :-)

Thanks a lot for the quick fix! Keep up your good work!