]> git.saurik.com Git - wxWidgets.git/commitdiff
Always rearrange wxListBook and send out size event, otherwise scrollbar overlaps...
authorRobert Roebling <robert@roebling.de>
Mon, 17 Sep 2007 13:37:52 +0000 (13:37 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 17 Sep 2007 13:37:52 +0000 (13:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listbkg.cpp

index eae7c13d3ca20aeb952ae650550c3d2911ac8426..90edce65e6bef3c55402ea6ae59f577c32dba4b5 100644 (file)
@@ -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;
 }