mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-04 08:06:16 +00:00
Handle case when CPBox is used as a separator line having no title
If _titlePosition is correctly set to CPNoTitle value, class already handles removing title view from display. Previously, _titlePosition was not correctly set, title view was left in place. With no supplied value for title, outline of title view was rendered with visible artifacts.
This commit is contained in:
1 parent
7734402e8e
commit
b02e4c5308
1 file changed
+5
-1
+5
-1
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user