]> git.lyx.org Git - lyx.git/commitdiff
disable scrollbar when it is not needed, especially for the empty start up window
authorPeter Kümmel <syntheticpp@gmx.net>
Fri, 3 Nov 2006 09:23:52 +0000 (09:23 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Fri, 3 Nov 2006 09:23:52 +0000 (09:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15700 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.C

index 942e1f4f19c608a35615c84e4b493bf894ea4531..e2475d50ec3934dd91334494a26011bcbfae2a60 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::ScrollBarAlwaysOn);
+       setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
        setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
        setAcceptDrops(true);
        setMinimumSize(100, 70);