X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..fa2b309e782464cffe7163d03a740a32fa385af5:/demos/forty/scoredg.cpp?ds=sidebyside diff --git a/demos/forty/scoredg.cpp b/demos/forty/scoredg.cpp index d8344f3eb0..ecd1bb44f4 100644 --- a/demos/forty/scoredg.cpp +++ b/demos/forty/scoredg.cpp @@ -181,7 +181,7 @@ ScoreDialog::ScoreDialog(wxWindow* parent, ScoreFile* file) : ScoreCanvas* list = new ScoreCanvas(this, m_scoreFile, wxDefaultPosition, sz); #endif - list->SetBestFittingSize(sz); + list->SetInitialSize(sz); // locate and resize with sizers wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );