From b02e4c530834f0ff88440d247fcbe2899085dc28 Mon Sep 17 00:00:00 2001 From: David Richardson Date: Mon, 16 Jan 2017 11:23:32 -0700 Subject: [PATCH] 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. --- AppKit/CPBox.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppKit/CPBox.j b/AppKit/CPBox.j index 9ab1d47d1..dd8c35192 100644 --- a/AppKit/CPBox.j +++ b/AppKit/CPBox.j @@ -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];