]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/display/display.cpp
remove/replace redundant SetAutoLayout() and Fit() calls, leave just SetSizer[AndFit...
[wxWidgets.git] / samples / display / display.cpp
index 683cb0375e4c7d05e565f0cbc8db964364f0f8ef..456f75f97ef74f969b8610577f5f4615f22a3547 100644 (file)
@@ -313,7 +313,6 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size,
     wxBoxSizer *sizer = new wxBoxSizer(wxHORIZONTAL);
     sizer->Add(m_book, 1, wxEXPAND);
     panel->SetSizer(sizer);
-    sizer->Fit(this);
     sizer->SetSizeHints(this);
 }