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:
@@ -324,13 +324,9 @@ wxListbook::InsertPage(size_t n,
|
|||||||
if ( selNew != -1 )
|
if ( selNew != -1 )
|
||||||
SetSelection(selNew);
|
SetSelection(selNew);
|
||||||
|
|
||||||
GetListView()->Arrange();
|
|
||||||
|
|
||||||
if (GetPageCount() == 1)
|
|
||||||
{
|
|
||||||
wxSizeEvent sz(GetSize(), GetId());
|
wxSizeEvent sz(GetSize(), GetId());
|
||||||
ProcessEvent(sz);
|
GetEventHandler()->ProcessEvent(sz);
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user