mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Remove archaeological work around scrollbar insanity.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22452 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
85ac3f0dc4
commit
a82d158e0c
@ -463,12 +463,7 @@ void GuiWorkArea::updateScrollbar()
|
||||
verticalScrollBar()->setTracking(false);
|
||||
|
||||
ScrollbarParameters const & scroll_ = buffer_view_->scrollbarParameters();
|
||||
|
||||
// do what cursor movement does (some grey)
|
||||
int const h = scroll_.height + viewport()->height() / 4;
|
||||
int scroll_max_ = max(0, h - viewport()->height());
|
||||
|
||||
verticalScrollBar()->setRange(0, scroll_max_);
|
||||
verticalScrollBar()->setRange(0, scroll_.height);
|
||||
verticalScrollBar()->setSliderPosition(scroll_.position);
|
||||
verticalScrollBar()->setSingleStep(scroll_.lineScrollHeight);
|
||||
verticalScrollBar()->setValue(scroll_.position);
|
||||
|
Loading…
Reference in New Issue
Block a user