Fix for scroll position being changed when partial layout is done
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e9fed11291
commit
5a0259e657
@ -3896,7 +3896,7 @@ bool wxRichTextCtrl::LayoutContent(bool onlyVisibleRect)
|
|||||||
GetBuffer().Layout(dc, context, availableSpace, availableSpace, flags);
|
GetBuffer().Layout(dc, context, availableSpace, availableSpace, flags);
|
||||||
GetBuffer().Invalidate(wxRICHTEXT_NONE);
|
GetBuffer().Invalidate(wxRICHTEXT_NONE);
|
||||||
|
|
||||||
if (!IsFrozen())
|
if (!IsFrozen() && !onlyVisibleRect)
|
||||||
SetupScrollbars();
|
SetupScrollbars();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user