]> git.lyx.org Git - features.git/commitdiff
Remove archaeological work around scrollbar insanity.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 9 Jan 2008 09:54:39 +0000 (09:54 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 9 Jan 2008 09:54:39 +0000 (09:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22452 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index a7bbc897e764904ae855da514f31d05accc59808..6c9d7cf41d1506b7f85074c6ccbdb58db402896e 100644 (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);