Commit 6340b9d7 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix Compact mode after toggleability changes

parent e84eedd8
...@@ -729,7 +729,7 @@ class MainWindow(wx.Frame): ...@@ -729,7 +729,7 @@ class MainWindow(wx.Frame):
self.splitterwindow.SplitVertically(vizpanel, logpanel, 0) self.splitterwindow.SplitVertically(vizpanel, logpanel, 0)
else: else:
vizpanel = self.newPanel(lowerpanel) vizpanel = self.newPanel(lowerpanel)
logpanel = self.newPanel(leftpanel) logpanel = self.newPanel(left_real_panel)
viz_pane = VizPane(self, vizpanel) viz_pane = VizPane(self, vizpanel)
# Custom buttons # Custom buttons
if wx.VERSION > (2, 9): self.centersizer = wx.WrapSizer(wx.HORIZONTAL) if wx.VERSION > (2, 9): self.centersizer = wx.WrapSizer(wx.HORIZONTAL)
...@@ -738,6 +738,9 @@ class MainWindow(wx.Frame): ...@@ -738,6 +738,9 @@ class MainWindow(wx.Frame):
self.centerpanel.SetSizer(self.centersizer) self.centerpanel.SetSizer(self.centersizer)
viz_pane.Add(self.centerpanel, 0, flag = wx.ALIGN_CENTER) viz_pane.Add(self.centerpanel, 0, flag = wx.ALIGN_CENTER)
vizpanel.SetSizer(viz_pane) vizpanel.SetSizer(viz_pane)
if compact:
log_pane = LogPane(self, logpanel)
else:
log_pane = LogPaneToggleable(self, logpanel, self.lowersizer) log_pane = LogPaneToggleable(self, logpanel, self.lowersizer)
logpanel.SetSizer(log_pane) logpanel.SetSizer(log_pane)
if not compact: if not compact:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment