X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68c0610daec57e98b97720847cd94b8628633234..f78e4942ec0f3f6abd2992502e2d6c5c2e8e55f6:/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)