Fixes some position issues of where to draw heart of the toolbar in the window - Submitted by Hans Van Leemputten
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4926b15b7d
commit
4cf0b34ce7
@ -1149,8 +1149,13 @@ void wxFrameLayout::PositionPanes()
|
||||
void wxFrameLayout::OnSize( wxSizeEvent& event )
|
||||
{
|
||||
if ( event.GetEventObject() == (wxObject*) mpFrame )
|
||||
|
||||
{
|
||||
GetUpdatesManager().OnStartChanges();
|
||||
RecalcLayout(TRUE);
|
||||
GetUpdatesManager().OnFinishChanges();
|
||||
GetUpdatesManager().UpdateNow();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*** protected members ***/
|
||||
@ -1551,9 +1556,11 @@ void wxFrameLayout::SetPaneBackground( const wxColour& colour )
|
||||
|
||||
void wxFrameLayout::RefreshNow( bool recalcLayout )
|
||||
{
|
||||
if ( recalcLayout ) RecalcLayout( TRUE );
|
||||
if ( recalcLayout )
|
||||
RecalcLayout( TRUE );
|
||||
|
||||
if ( mpFrame ) mpFrame->Refresh();
|
||||
if ( mpFrame )
|
||||
mpFrame->Refresh();
|
||||
}
|
||||
|
||||
/*** plugin-related methods ***/
|
||||
|
Loading…
Reference in New Issue
Block a user