From: Vadim Zeitlin Date: Wed, 3 May 2006 00:42:33 +0000 (+0000) Subject: don't invalidate the tree size when pages are added/removed, we don't want the tree... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/26e95a246b686717fa073523d0a265b6368fbedf?ds=inline don't invalidate the tree size when pages are added/removed, we don't want the tree size to jump on its own ad the programmer should call FitTree() explicitely if this is desired git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treebkg.cpp b/src/generic/treebkg.cpp index 5f86245e7e..3ca2946555 100644 --- a/src/generic/treebkg.cpp +++ b/src/generic/treebkg.cpp @@ -203,8 +203,6 @@ bool wxTreebook::DoInsertPage(size_t pagePos, DoUpdateSelection(bSelect, pagePos); - m_bookctrl->InvalidateBestSize(); - return true; } @@ -258,8 +256,6 @@ bool wxTreebook::DoInsertSubPage(size_t pagePos, DoUpdateSelection(bSelect, newPos); - m_bookctrl->InvalidateBestSize(); - return true; } @@ -308,7 +304,6 @@ wxTreebookPage *wxTreebook::DoRemovePage(size_t pagePos) tree->DeleteChildren( pageId ); tree->Delete( pageId ); - tree->InvalidateBestSize(); return oldPage; } @@ -629,10 +624,7 @@ int wxTreebook::DoSetSelection(size_t pagePos) } if ( page ) - { - page->SetSize(GetPageRect()); page->Show(); - } tree->SelectItem(DoInternalGetPage(pagePos));