From c0aa78eb762f7a993f8e3a5bda7c501f4536cedd Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Thu, 4 Dec 2008 21:58:01 -0800 Subject: [PATCH] Make CPColorWell resize correctly, and display immediately upon unarchiving. --- AppKit/CPColorWell.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppKit/CPColorWell.j b/AppKit/CPColorWell.j index d2a16d1d9..cc605e841 100644 --- a/AppKit/CPColorWell.j +++ b/AppKit/CPColorWell.j @@ -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]; }