]> git.lyx.org Git - features.git/commitdiff
scrollbars always on to avoid an additional resize when switching the buffer
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 9 Nov 2006 09:15:04 +0000 (09:15 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 9 Nov 2006 09:15:04 +0000 (09:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15815 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.C

index 433d97de2d97358a91e11e87d97a6b0fc7e8b5b1..b64c9456a64594c8bc801040fc2960a2b6eda287 100644 (file)
@@ -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);