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:
@@ -1149,8 +1149,13 @@ void wxFrameLayout::PositionPanes()
|
|||||||
void wxFrameLayout::OnSize( wxSizeEvent& event )
|
void wxFrameLayout::OnSize( wxSizeEvent& event )
|
||||||
{
|
{
|
||||||
if ( event.GetEventObject() == (wxObject*) mpFrame )
|
if ( event.GetEventObject() == (wxObject*) mpFrame )
|
||||||
|
{
|
||||||
|
GetUpdatesManager().OnStartChanges();
|
||||||
RecalcLayout(TRUE);
|
RecalcLayout(TRUE);
|
||||||
|
GetUpdatesManager().OnFinishChanges();
|
||||||
|
GetUpdatesManager().UpdateNow();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** protected members ***/
|
/*** protected members ***/
|
||||||
@@ -1551,9 +1556,11 @@ void wxFrameLayout::SetPaneBackground( const wxColour& colour )
|
|||||||
|
|
||||||
void wxFrameLayout::RefreshNow( bool recalcLayout )
|
void wxFrameLayout::RefreshNow( bool recalcLayout )
|
||||||
{
|
{
|
||||||
if ( recalcLayout ) RecalcLayout( TRUE );
|
if ( recalcLayout )
|
||||||
|
RecalcLayout( TRUE );
|
||||||
|
|
||||||
if ( mpFrame ) mpFrame->Refresh();
|
if ( mpFrame )
|
||||||
|
mpFrame->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** plugin-related methods ***/
|
/*** plugin-related methods ***/
|
||||||
|
Reference in New Issue
Block a user