CPBox should autoresize its content view.

This commit is contained in:
Ross Boucher committed 2010-03-26 16:41:23 -07:00
1 parent 686370ac0e
commit 1c9763eaa8
1 file changed
+1
+1
View File
@@ -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;
}