Skip to content

Commit

Permalink
Only change button heights if the button isn't bordered.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Feb 13, 2010
1 parent a0abf1e commit ec5645d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tools/nib2cib/NSButton.j
Expand Up @@ -93,11 +93,11 @@ _CPButtonBezelStyleHeights[CPHUDBezelStyle] = 20;
_bezelStyle = CPHUDBezelStyle;
}

//if (_CPButtonBezelStyleHeights[_bezelStyle] != undefined)
if ([cell isBordered])
{
//CPLog.warn("Adjusting CPButton height from " +_frame.size.height+ " / " + _bounds.size.height+" to " + _CPButtonBezelStyleHeights[_bezelStyle]);
_frame.size.height = 24.0;//_CPButtonBezelStyleHeights[_bezelStyle];
_bounds.size.height = 24.0;//_CPButtonBezelStyleHeights[_bezelStyle];
CPLog.warn("Adjusting CPButton height from " +_frame.size.height+ " / " + _bounds.size.height+" to " + 24);
_frame.size.height = 24.0;
_bounds.size.height = 24.0;
}
}
else
Expand Down

0 comments on commit ec5645d

Please sign in to comment.