From ce9fb31b80b189078a70eff7ae0b8293809fa018 Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Fri, 26 Mar 2010 16:41:23 -0700 Subject: [PATCH] CPBox should autoresize its content view. --- AppKit/CPBox.j | 1 + 1 file changed, 1 insertion(+) diff --git a/AppKit/CPBox.j b/AppKit/CPBox.j index 05500b550..07a78c759 100644 --- a/AppKit/CPBox.j +++ b/AppKit/CPBox.j @@ -162,6 +162,7 @@ CPGrooveBorder = 3; [aView setFrame:CGRectInset([self bounds], _contentMargin.width + _borderWidth, _contentMargin.height + _borderWidth)]; [self replaceSubview:_contentView with:aView]; + [aView setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable]; _contentView = aView; }