Commit eb02a5eb authored by Markus Steinborn's avatar Markus Steinborn Committed by Bernhard Link

Revert "Fix Debian bug #594991: unexpected scrolling of the TOC widget"

This reverts commit 6568096a.

Reverting fixes the following bug:

Using the END key (or whatever equivalent defined) does show the
last page, but the TOC is not scrolled to the number if the number
is outside the current TOC scroll window. It scrolls somewhere near
if the UP key is pressed afterwards. An annoying additional space
is shown beyond the last entry if you scroll down to the last position
using the slider.
parent 442aff96
......@@ -306,7 +306,7 @@ misc_setPageMarker(int entry, int kind, XEvent *event, Boolean check_toc)
else
VlistSetFirstVisible(newtoc, entry);
b = True;
} else if (entry < VlistEntries(newtoc) - 1) {
} else {
/* sadly newtoc does not know it's height, so it cannot be told
* to made an item visible and we need to trick: */
lastvisible = VlistEntryOfPosition(newtoc, newtocClip->core.height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment