From 3b19dd2ff1b8ae0554808febe939888f2a622d81 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 9 Nov 2007 11:08:13 +0000 Subject: [PATCH] Fix for layout in wxGTK when showing or hiding a toolbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/framecmn.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index a4e9d210b0..b73d492b69 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -174,6 +174,13 @@ void wxFrameBase::SendSizeEvent() wxSizeEvent event( GetSize(), GetId() ); event.SetEventObject( this ); GetEventHandler()->AddPendingEvent( event ); + +#ifdef __WXGTK__ + // SendSizeEvent is typically called when a toolbar is shown + // or hidden, but sending the size event alone is not enough + // to trigger a full layout. + ((wxFrame*)this)->GtkOnSize(); +#endif }