mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-28 22:47:04 +00:00
Don't adjust the origin and size of a text field during nib2cib
This interferes with Aparajita's auto-sizing of controls in initWithCoder:. Also it's better to calculate the size in initWithCoder: because the theme information is available.
This commit is contained in:
@@ -67,14 +67,6 @@
|
||||
[self setFrameOrigin:CGPointMake(frame.origin.x, frame.origin.y)];
|
||||
[self setFrameSize:CGSizeMake(frame.size.width, frame.size.height)];
|
||||
|
||||
// Only adjust the origin and size if this is a bezeled textfield
|
||||
// this makes sure that labels positioned in IB are properly positioned after nibcib
|
||||
if ([self isBezeled])
|
||||
{
|
||||
[self setFrameOrigin:CGPointMake(frame.origin.x - 4.0, frame.origin.y - 4.0)];
|
||||
[self setFrameSize:CGSizeMake(frame.size.width + 8.0, frame.size.height + 8.0)];
|
||||
}
|
||||
|
||||
CPLog.debug([self stringValue] + " => isBordered=" + [self isBordered] + ", isBezeled=" + [self isBezeled] + ", bezelStyle=" + [self bezelStyle] + "("+[cell stringValue]+", " + [cell placeholderString] + ")");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user