adds shouldReorderColumn to CPTableView delegate methods

This commit is contained in:
Christophe Serafin committed 2013-03-01 11:57:24 +01:00
1 parent 5312524871
commit 77d2ebbda0
2 files changed
+26 -1

No files matched your search

+1 -1
View File
@@ -455,7 +455,7 @@ var _CPTableColumnHeaderViewStringValueKey = @"_CPTableColumnHeaderViewStringVal
- (BOOL)_shouldDragTableColumn:(int)aColumnIndex at:(CGPoint)aPoint
{
return [_tableView allowsColumnReordering] && ABS(aPoint.x - _mouseDownLocation.x) >= 10.0;
return [_tableView _shouldReorderColumn:aColumnIndex toColumn:-1] && ABS(aPoint.x - _mouseDownLocation.x) >= 10.0;
}
- (CGRect)_headerRectOfLastVisibleColumn