From: Peter Kümmel Date: Thu, 9 Nov 2006 09:15:04 +0000 (+0000) Subject: scrollbars always on to avoid an additional resize when switching the buffer X-Git-Tag: 1.6.10~11971 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d1280565fde5e39ff37a521d805fc17008876abd;p=features.git 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 --- 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);