Add height/4 to scrolling maximum instead of height/2: prevent

overshooting.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10383 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2005-08-02 21:14:23 +00:00
parent bd71b5b95e
commit 9d3d5d016f

View 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();