From 2f875615a2ee7e3184201626bf6f0da8f435f35b Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Fri, 25 May 2012 11:14:43 +0200 Subject: [PATCH] Removed hardcoded width in disclosure button --- AppKit/CPOutlineView.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPOutlineView.j b/AppKit/CPOutlineView.j index 9bbcb6f9f..ffddcfab1 100644 --- a/AppKit/CPOutlineView.j +++ b/AppKit/CPOutlineView.j @@ -711,7 +711,8 @@ var CPOutlineViewCoalesceSelectionNotificationStateOff = 0, return _CGRectMakeZero(); var dataViewFrame = [self _frameOfOutlineDataViewAtRow:aRow], - frame = _CGRectMake(_CGRectGetMinX(dataViewFrame) - 10, _CGRectGetMinY(dataViewFrame), 10, _CGRectGetHeight(dataViewFrame)); + disclosureWidth = _CGRectGetWidth([_disclosureControlPrototype frame]), + frame = _CGRectMake(_CGRectGetMinX(dataViewFrame) - disclosureWidth, _CGRectGetMinY(dataViewFrame), disclosureWidth, _CGRectGetHeight(dataViewFrame)); return frame; }