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:
@@ -553,6 +553,7 @@ bool wxNotebook::DeleteAllPages()
|
||||
|
||||
m_nSelection = -1;
|
||||
|
||||
InvalidateBestSize();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -669,6 +670,7 @@ bool wxNotebook::InsertPage(size_t nPage,
|
||||
if ( selNew != -1 )
|
||||
SetSelection(selNew);
|
||||
|
||||
InvalidateBestSize();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user