Skip to content

Commit

Permalink
Make CPColorWell resize correctly, and display immediately upon unarc…
Browse files Browse the repository at this point in the history
…hiving.
  • Loading branch information
Tom Robinson committed Dec 5, 2008
1 parent 09d03bf commit c0aa78e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AppKit/CPColorWell.j
Expand Up @@ -199,6 +199,7 @@ var _CPColorWellDidBecomeExclusiveNotification = @"_CPColorWellDidBecomeExclusiv
if (!_wellView)
{
_wellView = [[CPView alloc] initWithFrame:aRect];
[_wellView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];

[self addSubview:_wellView];
}
Expand Down Expand Up @@ -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];
}

Expand Down

0 comments on commit c0aa78e

Please sign in to comment.