From af6c0493cf9aada5054cb3a97496a1ac96ee63bd Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 9 Jul 2007 19:49:50 +0000 Subject: [PATCH] Need to send an event in the wxCP_NO_TLW_RESIZE case too so the user code knows when to update the layout git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/collpane.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gtk/collpane.cpp b/src/gtk/collpane.cpp index 93b0be56e1..16f8711e74 100644 --- a/src/gtk/collpane.cpp +++ b/src/gtk/collpane.cpp @@ -93,6 +93,10 @@ static void gtk_collapsiblepane_expanded_callback (GObject *object, if (p->HasFlag(wxCP_NO_TLW_RESIZE)) { + // fire an event + wxCollapsiblePaneEvent ev(p, p->GetId(), p->IsCollapsed()); + p->GetEventHandler()->ProcessEvent(ev); + // the user asked to explicitely handle the resizing itself... return; }