Invalidate notebook best size when pages are added or removed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-07-03 15:49:29 +00:00
parent 5d91a08807
commit 37144cf0f1
10 changed files with 31 additions and 13 deletions

View File

@@ -279,6 +279,7 @@ wxNotebookPage* wxNotebook::DoRemovePage(size_t nPage)
if(m_nSelection >= 0) {
m_pages[m_nSelection]->Show(true);
}
InvalidateBestSize();
return page;
}
@@ -288,6 +289,7 @@ bool wxNotebook::DeleteAllPages()
WX_CLEAR_ARRAY(m_pages) ;
MacSetupTabs();
m_nSelection = -1 ;
InvalidateBestSize();
return TRUE;
}
@@ -345,6 +347,7 @@ bool wxNotebook::InsertPage(size_t nPage,
if ( selNew != -1 )
SetSelection(selNew);
InvalidateBestSize();
return true;
}