initWithCoder on CPTextField should respect the larger height value if it's set.

This commit is contained in:
Randall Luecke committed 2010-10-18 01:30:25 -04:00
1 parent 6b37bae2c2
commit 00e638f406
1 file changed
+1
+1
View File
@@ -1269,6 +1269,7 @@ var CPTextFieldIsEditableKey = "CPTextFieldIsEditableKey",
// 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])