]> 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>
Wed, 1 Nov 2006 17:51:56 +0000 (17:51 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Wed, 1 Nov 2006 17:51:56 +0000 (17:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15677 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.C

index 5a20b5401f4f412ddb93a5225477218772437bb4..2d285d8e87720bfbfe586a70404bc2978c8c9bf1 100644 (file)
@@ -245,6 +245,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);
        verticalScrollBar()->setRange(0, scroll_max_);
        verticalScrollBar()->setSliderPosition(scroll_pos);
        verticalScrollBar()->setSingleStep(scroll_line_step);