mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 17:12:50 +00:00
FIXED: corrected replaceSubview parameters order
This commit is contained in:
1 parent
c8ce2343d7
commit
4482089712
1 file changed
+1
-1
+1
-1
@@ -619,7 +619,7 @@ var CPBoxTypeKey = @"CPBoxTypeKey",
|
||||
if (_boxType != CPBoxSeparator)
|
||||
{
|
||||
_contentView = [aCoder decodeObjectForKey:CPBoxContentView] || [[CPView alloc] initWithFrame:[self bounds]];
|
||||
[self replaceSubview:_contentView with:[self subviews][0]];
|
||||
[self replaceSubview:[self subviews][0] with:_contentView];
|
||||
}
|
||||
|
||||
[self setAutoresizesSubviews:YES];
|
||||
|
||||
Reference in new issue
Block a user