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