From: Julian Smart Date: Tue, 18 Sep 2007 15:15:38 +0000 (+0000) Subject: Layout corrections X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cecf8eee8340553bfcf8ffbdb0cb3406ef68a443 Layout corrections git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index f82ffe8707..14b77e9b1d 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -229,7 +229,10 @@ void wxRichTextCtrl::Thaw() if (m_freezeCount == 0) { - SetupScrollbars(); + if (GetBuffer().GetDirty()) + LayoutContent(); + else + SetupScrollbars(); Refresh(false); } } @@ -244,11 +247,9 @@ void wxRichTextCtrl::Clear() m_caretAtLineStart = false; m_selectionRange.SetRange(-2, -2); - SetScrollbars(0, 0, 0, 0, 0, 0); - if (m_freezeCount == 0) { - SetupScrollbars(); + LayoutContent(); Refresh(false); } SendTextUpdatedEvent();