From d1280565fde5e39ff37a521d805fc17008876abd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Thu, 9 Nov 2006 09:15:04 +0000 Subject: [PATCH] scrollbars always on to avoid an additional resize when switching the buffer git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15815 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiWorkArea.C b/src/frontends/qt4/GuiWorkArea.C index 433d97de2d..b64c9456a6 100644 --- a/src/frontends/qt4/GuiWorkArea.C +++ b/src/frontends/qt4/GuiWorkArea.C @@ -193,7 +193,7 @@ GuiWorkArea::GuiWorkArea(int w, int h, int id, LyXView & lyx_view) cursor_ = new frontend::CursorWidget(this); cursor_->hide(); - setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); + setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setAcceptDrops(true); setMinimumSize(100, 70); @@ -252,7 +252,7 @@ void GuiWorkArea::setScrollbarParams(int h, int scroll_pos, int scroll_line_step h += height() / 4; int scroll_max_ = std::max(0, h - height()); - setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); + setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); verticalScrollBar()->setRange(0, scroll_max_); verticalScrollBar()->setSliderPosition(scroll_pos); verticalScrollBar()->setSingleStep(scroll_line_step); -- 2.39.2