]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/statbar/statbar.cpp
remove/replace redundant SetAutoLayout() and Fit() calls, leave just SetSizer[AndFit...
[wxWidgets.git] / samples / statbar / statbar.cpp
index 8915cd4c40c199cb5f4ad8f819ac847ede0cad6d..91cf5c9c90755e599ea8cdafc6e5b4d0f62f6d2f 100644 (file)
@@ -576,10 +576,7 @@ MyAboutDialog::MyAboutDialog(wxWindow *parent)
     sizerTop->Add(-1, 10, 1, wxGROW);
     sizerTop->Add(statbarBottom, 0, wxGROW);
 
-    SetSizer(sizerTop);
-
-    sizerTop->Fit(this);
-    sizerTop->SetSizeHints(this);
+    SetSizerAndFit(sizerTop);
 }
 
 // ----------------------------------------------------------------------------