]> git.saurik.com Git - wxWidgets.git/commitdiff
don't invalidate the tree size when pages are added/removed, we don't want the tree...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 May 2006 00:42:33 +0000 (00:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 May 2006 00:42:33 +0000 (00:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treebkg.cpp

index 5f86245e7e90061b73a3354c4f3af6b003aafe93..3ca29465552fae5534e81e6f9caa7b14e4ba8afb 100644 (file)
@@ -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));