mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-07 03:07:12 +00:00
force size only for bordered buttons and bezeled textfields
This commit is contained in:
+3
-1
@@ -204,7 +204,9 @@ CPButtonImageOffset = 3.0;
|
||||
- (void)setControlSize:(CPControlSize)aControlSize
|
||||
{
|
||||
[super setControlSize:aControlSize];
|
||||
[self sizeToControlSize];
|
||||
|
||||
if ([self isBordered])
|
||||
[self sizeToControlSize];
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -264,7 +264,7 @@ var CPControlBlackColor = [CPColor blackColor];
|
||||
if (minSize.height > 0)
|
||||
frameSize.height = minSize.height;
|
||||
|
||||
[super setFrameSize:frameSize];
|
||||
[self setFrameSize:frameSize];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -234,7 +234,9 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
|
||||
- (void)setControlSize:(CPControlSize)aControlSize
|
||||
{
|
||||
[super setControlSize:aControlSize];
|
||||
[self sizeToControlSize];
|
||||
|
||||
if ([self isBezeled])
|
||||
[self sizeToControlSize];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
Reference in New Issue
Block a user