X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68c0610daec57e98b97720847cd94b8628633234..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/wx/lib/scrolledpanel.py diff --git a/wxPython/wx/lib/scrolledpanel.py b/wxPython/wx/lib/scrolledpanel.py index 006cbc8733..851d9332fa 100644 --- a/wxPython/wx/lib/scrolledpanel.py +++ b/wxPython/wx/lib/scrolledpanel.py @@ -38,7 +38,7 @@ class ScrolledPanel( wx.PyScrolledWindow ): wx.PyScrolledWindow.__init__(self, parent, -1, pos=pos, size=size, style=style, name=name) - self.SetBestSize(size) + self.SetBestFittingSize(size) self.Bind(wx.EVT_CHILD_FOCUS, self.OnChildFocus)