Fix collapsable pane

main
Micke Nordin 3 years ago
parent e97330ca09
commit 16aac8d1f9
Signed by: micke
GPG Key ID: 014B273D614BE877

@ -194,6 +194,15 @@ class Cast(wx.Frame):
pane_sizer.Add(description, wx.GROW | wx.ALL, 2)
pane_win.SetSizer(pane_sizer)
pane_sizer.SetSizeHints(pane_win)
def fit_and_layout(_):
pane_sizer.Layout()
pane_sizer.Fit(pane_win)
inner_sizer.Layout()
inner_sizer.Fit(self)
self.m_sizer.Fit(self)
self.m_sizer.Layout()
collapsable_pane.Bind(wx.EVT_COLLAPSIBLEPANE_CHANGED, lambda event: fit_and_layout(event) )
#inner_sizer.Add(description)
self.m_sizer.Add(inner_sizer)
self.m_sizer.AddSpacer(SPACER_HEIGHT)

Loading…
Cancel
Save