]> git.lyx.org Git - features.git/commitdiff
Add height/4 to scrolling maximum instead of height/2: prevent
authorJohn Spray <spray@lyx.org>
Tue, 2 Aug 2005 21:14:23 +0000 (21:14 +0000)
committerJohn Spray <spray@lyx.org>
Tue, 2 Aug 2005 21:14:23 +0000 (21:14 +0000)
overshooting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10383 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/GWorkArea.C

index ab1fe58e4b11799927c321425ea25f7b9ab0d9a3..9cb8a48231b87b80999a9bfe54ce0bd3daf54eca 100644 (file)
@@ -358,7 +358,7 @@ void GWorkArea::setScrollbarParams(int height, int pos, int line_height)
        adjustment->set_page_increment(workAreaHeight - line_height);
        // Allow the user half a screen of blank at the end
        // to make scrollbar consistant with centering the cursor
-       adjustment->set_upper(height + workAreaHeight / 2);
+       adjustment->set_upper(height + workAreaHeight / 4);
        adjustment->set_page_size(workAreaHeight);
        adjustment->set_value(pos);
        adjustment->changed();