X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/806ad819585655ac1c35427409611d7795d0b910..5b464d6bbd088e122bca53f2a4a4ce1f09378de4:/samples/editlbox/editlbox.cpp diff --git a/samples/editlbox/editlbox.cpp b/samples/editlbox/editlbox.cpp index 66a91d19fe..a317e4edeb 100644 --- a/samples/editlbox/editlbox.cpp +++ b/samples/editlbox/editlbox.cpp @@ -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();