Fixed a sizer type induced layout bug in multiSwitch

This commit is contained in:
HomeWorld
2010-11-03 13:42:06 +02:00
parent adb31a7ad9
commit 4ccc1af311

View File

@@ -68,7 +68,7 @@ class MultiSwitch(wx.Notebook):
p = wx.Panel(self)
self.InsertPage(pos, p, "")
p.type = "fit"
sizer = wx.BoxSizer(wx.VERTICAL)
sizer = wx.BoxSizer(wx.HORIZONTAL)
p.view = fv.FittingView(p)
sizer.Add(p.view, 1, wx.EXPAND | wx.RESERVE_SPACE_EVEN_IF_HIDDEN)