Merge pull request #1693 from mrcarlberg/nib2cib_correct_height_for_button_subclasses

nib2cib will now adjust to the correct themed height for subclasses of CPButton
This commit is contained in:
Alexander Ljungberg committed 2012-11-29 12:34:29 +00:00
commit e28a78afd3
1 file changed
+2 -2
+2 -2
View File
@@ -220,8 +220,8 @@ var NSButtonIsBorderedMask = 0x00800000,
- If there is no max height either, don't do any height adjustments.
*/
var theme = [[Converter sharedConverter] themes][0],
minSize = [theme valueForAttributeWithName:@"min-size" forClass:[CPButton class]],
maxSize = [theme valueForAttributeWithName:@"max-size" forClass:[CPButton class]],
minSize = [theme valueForAttributeWithName:@"min-size" forClass:[self class]],
maxSize = [theme valueForAttributeWithName:@"max-size" forClass:[self class]],
adjustHeight = NO;
if (minSize.height > 0 && maxSize.height > 0 && minSize.height === maxSize.height)