Make CPColorWell resize correctly, and display immediately upon unarchiving.

This commit is contained in:
Tom Robinson
2008-12-04 21:58:01 -08:00
parent 09d03bf270
commit c0aa78eb76
+5 -1
View File
@@ -199,6 +199,7 @@ var _CPColorWellDidBecomeExclusiveNotification = @"_CPColorWellDidBecomeExclusiv
if (!_wellView)
{
_wellView = [[CPView alloc] initWithFrame:aRect];
[_wellView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
[self addSubview:_wellView];
}
@@ -272,7 +273,10 @@ var CPColorWellColorKey = "CPColorWellColorKey",
_active = NO;
_bordered = [aCoder decodeObjectForKey:CPColorWellBorderedKey];
_color = [aCoder decodeObjectForKey:CPColorWellColorKey];
[self drawBezelWithHighlight:NO];
[self drawWellInside:CGRectInset([self bounds], 3.0, 3.0)];
[self _registerForNotifications];
}