From a9a56347b84be54a9d48df2cfe08ddf761aaf491 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 17 Sep 2007 13:37:52 +0000 Subject: [PATCH] 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 --- src/generic/listbkg.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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; }