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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user