GNOME Bugzilla – Bug 165022
Help browser doesn't remember scrolled position
Last modified: 2008-01-15 12:46:07 UTC
Translated from Debian bug report http://bugs.debian.org/291679 When navigating between pages in the built-in helpbrowser, the position on each page is not remembered, so clicking the Back button goes to the top of the last page, not the last position. Other information:
Hmm, this used to work at some point...
The link to the debian bug report seems wrong and I cannot reproduce the problem. Would be interesting to know what version of gtkhtml was being used here. Setting to NEEDINFO.
whoops, here is the correct bug URL: http://bugs.debian.org/291769, though I'm not sure that will give you much more information. I can reproduce this using gtkhtml 2.6.3.
Since we are both using Debian, we are probably both using the same version of gtkhtml2. Still, I can't reproduce the problem. Perhaps you can give a more detailed description on how to reproduce it?
Sure. 1. Open the help browser to the front contents page 2. scroll down a bit, let's say to "5. Menus". 3. Click on the "5. Menus" link 4. Click the "Back" button at the top of the helpbrowser 5. Note how the scrolled position is now at the top of the page, instead of at "5. Menus" where it was before.
I should note that nearly all web browsers don't exhibit this behavior, but rather they remember the scrolled positions of the previously viewed pages in the browser "Back" history.
Ah, now I understand your bug report. The help-browser does remember the anchors you jump to but it doesn't rememeber the scroll offset you came from. I will mark this an enhancement request for GIMP 2.4.
Adding the position on the page to the browser's history should be an easy fix.
Fixed in the HEAD branch. I don't plan to backport this change to 2.2; closing as FIXED. 2005-05-26 Sven Neumann <sven@gimp.org> * plug-ins/helpbrowser/dialog.c * plug-ins/helpbrowser/queue.[ch]: store the scroll offset in the history and set it when using the Back and Forward actions. Fixes bug #165022.