From: Robert Roebling <robert@roebling.de>
Date: Mon, 17 Sep 2007 13:37:52 +0000 (+0000)
Subject: Always rearrange wxListBook and send out size event, otherwise scrollbar overlaps... 
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a9a56347b84be54a9d48df2cfe08ddf761aaf491

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
---

diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp
index eae7c13d3c..90edce65e6 100644
--- a/src/generic/listbkg.cpp
+++ b/src/generic/listbkg.cpp
@@ -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;
 }