mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
bd71b5b95e
commit
9d3d5d016f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user