]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/scrolledpanel.py
Compile fixes for Panther
[wxWidgets.git] / wxPython / wx / lib / scrolledpanel.py
index 122cdde7bd4eeddb436538ad7c09b21829839db6..1d92901f9e85c567552a47acdfa5fa1ad76c7fab 100644 (file)
@@ -38,7 +38,7 @@ class ScrolledPanel( wx.PyScrolledWindow ):
         wx.PyScrolledWindow.__init__(self, parent, id,
                                      pos=pos, size=size,
                                      style=style, name=name)
-        self.SetBestFittingSize(size)
+        self.SetInitialSize(size)
         self.Bind(wx.EVT_CHILD_FOCUS, self.OnChildFocus)