Commits

Virgil Dupras committed d3d40cd

Fixed Checkbox control heights.

Comments (0)

Files changed (1)

xibless/button.py

     
 
 class Checkbox(Button):
-    CONTROL_HEIGHTS = ControlHeights(14, 14, 10)
+    CONTROL_HEIGHTS = ControlHeights(14, 12, 10)
     
     def __init__(self, parent, title):
         Button.__init__(self, parent, title)
         self.layoutDeltaW = 4
         self.layoutDeltaH = 4
     
+    def _getControlHeights(self):
+        return self.CONTROL_HEIGHTS
+    
     def generateInit(self):
         tmpl = Button.generateInit(self)
         self.properties['imagePosition'] = const.NSImageLeft