mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 02:33:50 +00:00
Removed frame resizing in the textfield's initWithCoder:
This commit is contained in:
1 parent
b85e9d83b8
commit
c52b40657a
1 file changed
-11
@@ -1263,17 +1263,6 @@ var CPTextFieldIsEditableKey = "CPTextFieldIsEditableKey",
|
||||
|
||||
[self setPlaceholderString:[aCoder decodeObjectForKey:CPTextFieldPlaceholderStringKey]];
|
||||
|
||||
// Make sure the frame is big enough
|
||||
var minSize = [self _minimumFrameSize];
|
||||
minSize.width = MAX(CGRectGetWidth([self frame]), minSize.width);
|
||||
minSize.height = MAX(CGRectGetHeight([self frame]), minSize.height);
|
||||
|
||||
// Only size multiline bezeled textfields if it's to small to fit the content
|
||||
if ([self isBezeled])
|
||||
if ([self lineBreakMode] === CPLineBreakByCharWrapping || [self lineBreakMode] == CPLineBreakByWordWrapping)
|
||||
minSize.height = MAX(CGRectGetHeight([self frame]), minSize.height);
|
||||
|
||||
[self setFrameSize:minSize];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in new issue
Block a user