X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68c0610daec57e98b97720847cd94b8628633234..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/wx/lib/scrolledpanel.py diff --git a/wxPython/wx/lib/scrolledpanel.py b/wxPython/wx/lib/scrolledpanel.py index 006cbc8733..3b134234cf 100644 --- a/wxPython/wx/lib/scrolledpanel.py +++ b/wxPython/wx/lib/scrolledpanel.py @@ -35,10 +35,10 @@ class ScrolledPanel( wx.PyScrolledWindow ): size = wx.DefaultSize, style = wx.TAB_TRAVERSAL, name = "scrolledpanel"): - wx.PyScrolledWindow.__init__(self, parent, -1, + wx.PyScrolledWindow.__init__(self, parent, id, pos=pos, size=size, style=style, name=name) - self.SetBestSize(size) + self.SetBestFittingSize(size) self.Bind(wx.EVT_CHILD_FOCUS, self.OnChildFocus)