X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adcb6f88ee32eb508d64e86c22ad193fec8b95cf..92c01615ecb4afeb325e5148554b443fed830534:/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();