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
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();