From e840e4a547b7f78dde770161e63d3935db06cb07 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Wed, 16 Jan 2013 14:12:07 -0800 Subject: [PATCH] Fixed bug about the width of legacy scrollView --- AppKit/CPScrollView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPScrollView.j b/AppKit/CPScrollView.j index 93fb6b374..d99ec583c 100644 --- a/AppKit/CPScrollView.j +++ b/AppKit/CPScrollView.j @@ -1112,8 +1112,8 @@ Notifies the delegate when the scroll view has finished scrolling. contentFrame.size.height -= headerClipViewHeight; var difference = _CGSizeMake(_CGRectGetWidth(documentFrame) - _CGRectGetWidth(contentFrame), _CGRectGetHeight(documentFrame) - _CGRectGetHeight(contentFrame)), - verticalScrollerWidth = _CGRectGetWidth([_verticalScroller frame]), - horizontalScrollerHeight = _CGRectGetHeight([_horizontalScroller frame]), + verticalScrollerWidth = [CPScroller scrollerWidthInStyle:[_verticalScroller style]], + horizontalScrollerHeight = [CPScroller scrollerWidthInStyle:[_horizontalScroller style]], hasVerticalScroll = difference.height > 0.0, hasHorizontalScroll = difference.width > 0.0, shouldShowVerticalScroller = _hasVerticalScroller && (!_autohidesScrollers || hasVerticalScroll),