From: Daid Date: Fri, 9 Mar 2012 14:50:37 +0000 (+0100) Subject: Fixed possibly another MacOS layout bug X-Git-Tag: RC1~121 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=aef78e0582d921d1c54b1d1d7b96578a8fdff959;p=cura.git Fixed possibly another MacOS layout bug --- diff --git a/SkeinPyPy_NewUI/newui/configBase.py b/SkeinPyPy_NewUI/newui/configBase.py index 10e34424..645807ad 100644 --- a/SkeinPyPy_NewUI/newui/configBase.py +++ b/SkeinPyPy_NewUI/newui/configBase.py @@ -86,11 +86,12 @@ class TitleRow(): def __init__(self, panel, name): "Add a title row to the configuration panel" sizer = panel.GetSizer() + x = sizer.GetRows() self.title = wx.StaticText(panel, -1, name) self.title.SetFont(wx.Font(8, wx.FONTFAMILY_DEFAULT, wx.NORMAL, wx.FONTWEIGHT_BOLD)) sizer.Add(self.title, (sizer.GetRows(),0), (1,3), flag=wx.EXPAND) sizer.Add(wx.StaticLine(panel), (sizer.GetRows()+1,0), (1,3), flag=wx.EXPAND) - sizer.SetRows(sizer.GetRows() + 2) + sizer.SetRows(x + 2) class SettingRow(): def __init__(self, panel, label, configName, defaultValue = '', helpText = 'Help: TODO', type = 'profile'):