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
This commit is contained in:
Julian Smart
2007-11-09 11:08:13 +00:00
parent cef14be8f0
commit 3b19dd2ff1

View File

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