corrected positioning of internal panels, as the default value -1

was used as a real coordinate causing extra pixels in the right margin


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky 2006-02-21 14:23:48 +00:00
parent 6ebf3215ff
commit 0159bfd008

View File

@ -501,7 +501,7 @@ class CaptionBar(wx.Window):
iconWidth=16, iconHeight=16, collapsed=False):
""" Default Class Constructor."""
wx.Window.__init__(self, parent, wx.ID_ANY, pos=wx.DefaultPosition,
wx.Window.__init__(self, parent, wx.ID_ANY, pos=pos,
size=(20,20), style=wx.NO_BORDER)
self._controlCreated = False
@ -1488,7 +1488,7 @@ class FoldPanelItem(wx.Panel):
collapsed=False, cbstyle=EmptyCaptionBarStyle):
""" Default Class Constructor. """
wx.Panel.__init__(self, parent, id, style=wx.CLIP_CHILDREN)
wx.Panel.__init__(self, parent, id, wx.Point(0,0), style=wx.CLIP_CHILDREN)
self._controlCreated = False
self._UserSize = 0
self._PanelSize = 0