mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-05 12:15:32 +00:00
Fixed column drag and drop in the tableview.
This commit is contained in:
1 parent
4a09feed59
commit
5427e9a402
1 file changed
+8
-1
@@ -980,9 +980,16 @@ NOT YET IMPLEMENTED
|
||||
if (_draggedColumn === aColumn)
|
||||
return;
|
||||
|
||||
var previouslyDraggedColumn = _draggedColumn;
|
||||
_draggedColumn = aColumn;
|
||||
|
||||
[self reloadDataForRowIndexes:_exposedRows columnIndexes:[CPIndexSet indexSetWithIndex:[_tableColumns indexOfObject:aColumn]]];
|
||||
// if a column is currently being dragged, update that column (removing data views)
|
||||
if (aColumn)
|
||||
[self reloadDataForRowIndexes:_exposedRows columnIndexes:[CPIndexSet indexSetWithIndex:[_tableColumns indexOfObject:aColumn]]];
|
||||
|
||||
// when the column is dropped, we should also update it.
|
||||
if (previouslyDraggedColumn)
|
||||
[self reloadDataForRowIndexes:_exposedRows columnIndexes:[CPIndexSet indexSetWithIndex:[_tableColumns indexOfObject:previouslyDraggedColumn]]];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user