mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 17:12:50 +00:00
Buttons should also be re-centered after their height is changed in nib2cib.
This commit is contained in:
1 parent
f40fc321fe
commit
1b174b86ca
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user