From 7dd034e56cd80dd39de88cd2d7f48fc928466a4a Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Thu, 29 Nov 2012 13:25:53 +0100 Subject: [PATCH] nib2cib will now adjust to the correct themed height for subclasses of CPButton. For examples CPPopUpButton can get another height then CPButton. --- Tools/nib2cib/NSButton.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/nib2cib/NSButton.j b/Tools/nib2cib/NSButton.j index f5597344c..4b095bdce 100644 --- a/Tools/nib2cib/NSButton.j +++ b/Tools/nib2cib/NSButton.j @@ -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)