From: Abdelrazak Younes Date: Wed, 9 Jan 2008 09:54:39 +0000 (+0000) Subject: Remove archaeological work around scrollbar insanity. X-Git-Tag: 1.6.10~6694 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a82d158e0c5b5e53cc92d4212791e1c52700dfe0;p=features.git Remove archaeological work around scrollbar insanity. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22452 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index a7bbc897e7..6c9d7cf41d 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -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);