use just SetSizerAndFit instead of 4 equivalent lines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
143e2719f5
commit
120edd5dbd
@ -781,10 +781,7 @@ wxPlotWindow::wxPlotWindow( wxWindow *parent, wxWindowID id, const wxPoint &pos,
|
||||
|
||||
mainsizer->Add( m_plotAndTitleSizer, 1, wxEXPAND );
|
||||
|
||||
SetAutoLayout( true );
|
||||
SetSizer( mainsizer );
|
||||
mainsizer->Fit(this);
|
||||
mainsizer->SetSizeHints(this);
|
||||
SetSizerAndFit( mainsizer );
|
||||
|
||||
SetTargetWindow( m_area );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user