]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/notebook/notebook.cpp
Fix wxListBox selection handling broken by r64500.
[wxWidgets.git] / samples / notebook / notebook.cpp
index bfd3962a9d2c9e89874fe6d4316ad24f1ef8aabe..8a204570a5784652b9bee20d3c8db3881985b560 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     26/10/98
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998-2002 wxWidgets team
-// License:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx.h".
@@ -402,10 +402,11 @@ MyFrame::MyFrame()
     RecreateBook();
 
     m_panel->SetSizer(m_sizerFrame);
+    m_panel->Layout();
 
-    m_sizerFrame->SetSizeHints(this);
-
-    Centre(wxBOTH);
+    wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
+    sizer->Add(m_panel, wxSizerFlags(1).Expand());
+    SetSizerAndFit(sizer);
 }
 
 MyFrame::~MyFrame()