X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..0576cd9ebe3430bdf7acf69e1dd1df92273f32ad:/demos/forty/scoredg.cpp 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 );