From a82d158e0c5b5e53cc92d4212791e1c52700dfe0 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 9 Jan 2008 09:54:39 +0000 Subject: [PATCH] Remove archaeological work around scrollbar insanity. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22452 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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);