]> git.saurik.com Git - wxWidgets.git/commitdiff
fix layout
authorRobin Dunn <robin@alldunn.com>
Mon, 2 Oct 2006 19:59:58 +0000 (19:59 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 2 Oct 2006 19:59:58 +0000 (19:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Sizers.py

index eab72bede41b2c8024bb0afd5a8d89e3feda75ae..97db7945f735dfce1bac205d8a701cee2672155a 100644 (file)
@@ -532,9 +532,9 @@ class TestFrame(wx.Frame):
         self.sizer = sizerFunc(p)
         self.CreateStatusBar()
         self.SetStatusText("Resize this frame to see how the sizers respond...")
-        self.sizer.Fit(p)
 
         p.SetSizer(self.sizer)
+        self.sizer.Fit(p)
         self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
         self.Fit()