Moved shipbrowser's nav panel into its main sizer. Less headaches if we decide to use a vertical layout for race selection and ship items

This commit is contained in:
HomeWorld
2011-05-17 19:18:24 +03:00
parent 0b99eabff8
commit a841aaf511

View File

@@ -522,11 +522,11 @@ class ShipBrowser(wx.Panel):
layout = wx.HORIZONTAL
self.navpanel = NavigationPanel(self)
mainSizer.Add(self.navpanel, 0 , wx.EXPAND)
self.raceselect = RaceSelector(self, layout = layout, animate = False)
container = wx.BoxSizer(wx.VERTICAL if layout == wx.HORIZONTAL else wx.HORIZONTAL)
if layout == wx.HORIZONTAL:
container.Add(self.navpanel,0,wx.EXPAND)
container.Add(self.lpane,1,wx.EXPAND)
container.Add(self.raceselect,0,wx.EXPAND)
else: