From 26df9e861f7b7757c1810103885f07b8f67fa908 Mon Sep 17 00:00:00 2001 From: BlairDuncan Date: Sat, 20 Feb 2010 03:58:38 -0500 Subject: [PATCH] Fix for cursor showing resize indicator when column isn't user resizable. --- AppKit/CPTableHeaderView.j | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AppKit/CPTableHeaderView.j b/AppKit/CPTableHeaderView.j index 00894384b..a06665148 100644 --- a/AppKit/CPTableHeaderView.j +++ b/AppKit/CPTableHeaderView.j @@ -343,6 +343,12 @@ var _CPTableColumnHeaderViewStringValueKey = @"_CPTableColumnHeaderViewStringVal - (void)_updateResizeCursor:(CPEvent)theEvent { + if (![_tableView allowsColumnResizing] || ![_tableView columnAutoresizingStyle]) + { + [[CPCursor arrowCursor] set]; + return; + } + var mouseLocation = [self convertPoint:[theEvent locationInWindow] fromView:nil], mouseOverLocation = CGPointMake(mouseLocation.x - 5, mouseLocation.y), overColumn = [self columnAtPoint:mouseOverLocation];