mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* 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:
parent
0364c6c3cb
commit
ec88eb82f6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user