From: Julian Smart Date: Wed, 12 Mar 2008 13:45:29 +0000 (+0000) Subject: Better fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dd9f8b6bb6935360a8271dc3e8749fb026b601a8?ds=sidebyside Better fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/forty/canvas.cpp b/demos/forty/canvas.cpp index 7a8e5fa384..3b1cc178d9 100644 --- a/demos/forty/canvas.cpp +++ b/demos/forty/canvas.cpp @@ -41,7 +41,6 @@ FortyCanvas::FortyCanvas(wxWindow* parent, const wxPoint& pos, const wxSize& siz m_leftBtnDown(false) { SetScrollbars(0, 0, 0, 0); - SetMinSize(wxSize(10,10)); #ifdef __WXGTK__ m_font = wxTheFontList->FindOrCreateFont(12, wxROMAN, wxNORMAL, wxNORMAL); diff --git a/demos/forty/forty.cpp b/demos/forty/forty.cpp index 036c9429b4..24902505bb 100644 --- a/demos/forty/forty.cpp +++ b/demos/forty/forty.cpp @@ -199,6 +199,8 @@ FortyFrame::FortyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos #if wxUSE_STATUSBAR CreateStatusBar(); #endif // wxUSE_STATUSBAR + + topsizer->SetSizeHints( this ); } void FortyFrame::OnCloseWindow(wxCloseEvent& event)