chiark / gitweb /
Fixed possibly another MacOS layout bug
authorDaid <daid303@gmail.com>
Fri, 9 Mar 2012 14:50:37 +0000 (15:50 +0100)
committerDaid <daid303@gmail.com>
Fri, 9 Mar 2012 14:50:37 +0000 (15:50 +0100)
SkeinPyPy_NewUI/newui/configBase.py

index 10e3442443ccda09e91b2a150ba96a0b43c78256..645807ad1f30bd56f24569c4410b29bc7a1aaea3 100644 (file)
@@ -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'):