CPBox should autoresize its content view.

This commit is contained in:
Ross Boucher authored and Francisco Ryan Tolmasky I committed 2010-03-28 15:04:42 -07:00
1 parent f568629685
commit ce9fb31b80
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;
}