From 9d25f1c073bd460798a7bccfaae4396fa72afff7 Mon Sep 17 00:00:00 2001 From: Alos Date: Sun, 16 Feb 2014 23:16:38 -0600 Subject: [PATCH] Fixed layoutSubviews Added missing setNeedsLayout --- AppKit/CPTabView.j | 2 +- AppKit/CPTabViewItem.j | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTabView.j b/AppKit/CPTabView.j index 6aa303cae..e126d3ba1 100644 --- a/AppKit/CPTabView.j +++ b/AppKit/CPTabView.j @@ -390,7 +390,7 @@ var CPTabViewDidSelectTabViewItemSelector = 1 << 1, [_box setFrame:CGRectMake(0, origin, CGRectGetWidth(aFrame), CGRectGetHeight(aFrame) - segmentedHeight / 2)]; - + [self _updateItems]; [self _repositionTabs]; } } diff --git a/AppKit/CPTabViewItem.j b/AppKit/CPTabViewItem.j index c2e4347ea..6c073b1d0 100644 --- a/AppKit/CPTabViewItem.j +++ b/AppKit/CPTabViewItem.j @@ -90,6 +90,7 @@ CPPressedTab = 2; - (void)setLabel:(CPString)aLabel { _label = aLabel; + [_tabView setNeedsLayout]; } /*!