Merge pull request #2503 from enquora/master

Fix CPBox drawing artifacts when used in CPSeparator mode
This commit is contained in:
Martin Carlberg
2017-01-19 09:46:33 +01:00
committed by GitHub
+5 -1
View File
@@ -630,7 +630,11 @@ var CPBoxTypeKey = @"CPBoxTypeKey",
[_contentView setSubviews:[malformedContentView subviews]];
[self replaceSubview:malformedContentView with:_contentView];
}
else
{
_titlePosition = CPNoTitle;
}
[self setAutoresizesSubviews:YES];
[_contentView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];