]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxSizer::Fit() for sizing the dialog
authorRobert Roebling <robert@roebling.de>
Sun, 13 Jan 2008 13:07:26 +0000 (13:07 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 13 Jan 2008 13:07:26 +0000 (13:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.cpp

index 19858fb8193dc6eca2bee84eae4d656b24809f69..53216863267b63ea1c343748090685d828027c9a 100644 (file)
@@ -1265,7 +1265,7 @@ TestDefaultActionDialog::TestDefaultActionDialog( wxWindow *parent ) :
         main_sizer->Add( button_sizer, 0, wxALL|wxGROW, 5 );
         
     SetSizer( main_sizer );
-    main_sizer->SetSizeHints( this );
+    main_sizer->Fit( this );
 }
     
 void TestDefaultActionDialog::OnListBoxDClick(wxCommandEvent& event)