remove/replace redundant SetAutoLayout() and Fit() calls, leave just SetSizer[AndFit]() ones (patch 1905759)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,8 +48,7 @@ bool MyApp::OnInit()
|
||||
sizer->Add(5,5);
|
||||
|
||||
sizer->Add(new wxButton(&dlg, wxID_OK, _("OK")), 0, wxALIGN_RIGHT | wxALL, 10);
|
||||
dlg.SetSizer(sizer);
|
||||
sizer->Fit(&dlg);
|
||||
dlg.SetSizerAndFit(sizer);
|
||||
dlg.Centre();
|
||||
|
||||
dlg.ShowModal();
|
||||
|
Reference in New Issue
Block a user