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:
Abdelrazak Younes 2008-01-09 09:54:39 +00:00
parent 85ac3f0dc4
commit a82d158e0c

View File

@ -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);