Backport wxListBook resizing bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-09-19 11:24:38 +00:00
parent ea62c5fc9e
commit a5db377c39

View File

@@ -324,13 +324,9 @@ wxListbook::InsertPage(size_t n,
if ( selNew != -1 )
SetSelection(selNew);
GetListView()->Arrange();
wxSizeEvent sz(GetSize(), GetId());
GetEventHandler()->ProcessEvent(sz);
if (GetPageCount() == 1)
{
wxSizeEvent sz(GetSize(), GetId());
ProcessEvent(sz);
}
return true;
}