showFullScreen();
statusBar()->hide();
menuBar()->hide();
- if (d.current_work_area_) {
- // It seems there is a bug somewhere preventing the scrollbar to
- // show up with updated parameters. This work-around seems to work.
- d.current_work_area_->verticalScrollBar()->show();
- }
}
}
// We are already inside a paint event.
lyx_view_->setBusy(true);
buffer_view_->resize(viewport()->width(), viewport()->height());
+ updateScreen();
+
+ // 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();
+
lyx_view_->updateLayoutList();
lyx_view_->setBusy(false);
need_resize_ = false;
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();
}