]> git.saurik.com Git - wxWidgets.git/commitdiff
Better fix
authorJulian Smart <julian@anthemion.co.uk>
Wed, 12 Mar 2008 13:45:29 +0000 (13:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 12 Mar 2008 13:45:29 +0000 (13:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/forty/canvas.cpp
demos/forty/forty.cpp

index 7a8e5fa384ad98e8049aeac228b8e6b5c4c94a2f..3b1cc178d910e0982b48af5ff7c0cbac2ea38cdb 100644 (file)
@@ -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);
index 036c9429b42555e1aadc1ab8d66bcfc7acdaaafe..24902505bb0ad9d3b105a5cc884a7377a9042050 100644 (file)
@@ -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)