Comment 4 for bug 1442874

Revision history for this message
Adam Reichold (adamreichold) wrote : Re: [Bug 1442874] Re: Jumping pages/following links changes horizontal position

The related branch should now also fix the jump-on-refresh problem
w.r.t. to trim-margins. Of course fixing this interacts badly with the
scroll-if-not-visible functions which needs some special casing for this
to work. (For now I only allow the view not to scroll, when I explicitly
jump to some position, e.g. by clicking a link.)

Testing is appreciated. Thanks!

Am 15.04.2015 um 11:36 schrieb Thomas Weidner:
> I tried your branch and following links now works much better. I did not
> find a case, where the viewport was badly positioned.
>
> I attached a test PDF where clicking the link in the last line positions
> the viewport to the right, whereas the target of the link (the equation
> or the "(1)" in the equation) would be visible without changing
> horizontal scrolling.
>
> Trim margins looks really nice, but has scrolling bugs of its own: When
> the PDF file is refreshed (because a new version is written by the latex
> compiler) the vertical scroll position changes slightly (like ~5 lines
> of text). So after a series of recompilations the area of interest
> eventually moves out of the viewport.
>
> ** Attachment added: "test-eq.pdf"
> https://bugs.launchpad.net/qpdfview/+bug/1442874/+attachment/4376071/+files/test-eq.pdf
>