//
//  NSControlAutoAdjustCategory.m
//  Dockyard
//

#import "NSControlAutoAdjustCategory.h"


@implementation NSControl (AutoAdjustCategory)
- (void)didAdjustSubviews:(RBSplitView *)sender
{
	NSRect frame = [self frame];
	frame.size.height = FLT_MAX;
	
	frame.size.height = [[self cell] cellSizeForBounds:frame].height;
	[self setFrameSize:frame.size];
}

@end
