Always rearrange wxListBook and send out size event, otherwise scrollbar overlaps icons

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2007-09-17 13:37:52 +00:00
parent 7d61c83f40
commit a9a56347b8

View File

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