invalidate best size of the book controller too when the pages are added/removed, this fixes a lot of sizing problems with treebook

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-11-04 12:20:09 +00:00
parent 72db44b528
commit e8a147a6c3
5 changed files with 157 additions and 140 deletions

View File

@@ -258,8 +258,6 @@ bool wxTreebook::DoInsertSubPage(size_t pagePos,
wxTreeItemId newId = tree->AppendItem(parentId, text, imageId);
tree->InvalidateBestSize();
if ( !newId.IsOk() )
{
(void)wxBookCtrlBase::DoRemovePage(newPos);