]> git.saurik.com Git - wxWidgets.git/commitdiff
set size hints so that the window won't shrink too much
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 24 Jun 2004 09:04:10 +0000 (09:04 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 24 Jun 2004 09:04:10 +0000 (09:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/display/display.cpp

index c497f25a234a2d8027fca46da8ec0baa88ce0f75..47fe984393cd3b6b4a5ddf63704a90b77b83a7a0 100644 (file)
@@ -296,7 +296,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size,
     wxNotebookSizer *notebookSizer = new wxNotebookSizer(m_notebook);
     panel->SetSizer(notebookSizer);
     notebookSizer->Fit(this);
-
+    notebookSizer->SetSizeHints(this);
 }
 
 wxString MyFrame::VideoModeToText(const wxVideoMode& mode)