* The BufferView sets up its scrollbar data when it first gets its

actual size via a resize event. So make sure the GuiWorkArea also
  updates the GUI scrollbars.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22787 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-02-05 13:17:05 +00:00
parent 0364c6c3cb
commit ec88eb82f6

View File

@ -761,6 +761,14 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev)
if (need_resize_) {
screen_ = QPixmap(viewport()->width(), viewport()->height());
resizeBufferView();
// Update scrollbars which might have changed due different
// BufferView dimension. This is especially important when the
// BufferView goes from zero-size to the real-size for the first time,
// as the scrollbar paramters are then set for the first time.
updateScrollbar();
BOOST_ASSERT(need_resize_ == false);
updateScreen();
hideCursor();
showCursor();