Buttons should also be re-centered after their height is changed in nib2cib.

This commit is contained in:
Ross Boucher committed 2010-06-16 08:14:04 -07:00
1 parent f40fc321fe
commit 1b174b86ca
1 file changed
+2 -1
+2 -1
View File
@@ -93,10 +93,11 @@ _CPButtonBezelStyleHeights[CPHUDBezelStyle] = 20;
_bezelStyle = CPHUDBezelStyle;
}
if ([cell isBordered])
if ([cell isBordered] && _frame.size.height === 32.0)
{
CPLog.info("Adjusting CPButton height from " +_frame.size.height+ " / " + _bounds.size.height+" to " + 24);
_frame.size.height = 24.0;
_frame.origin.y += 4.0;
_bounds.size.height = 24.0;
}
}