mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-05 12:15:32 +00:00
CPOutlineView: fix for _retargetedDropRow not set when retargeting an item which resulted in a wrong drop line position
This commit is contained in:
1 parent
f902223597
commit
a4cadc5fb3
1 file changed
+6
@@ -536,6 +536,12 @@ CPOutlineViewDropOnItemIndex = -1;
|
||||
|
||||
_retargedChildIndex = theIndex;
|
||||
_shouldRetargetChildIndex = YES;
|
||||
|
||||
// set CPTableView's _retargetedDropRow based on retargetedItem and retargetedChildIndex
|
||||
var retargetedItemInfo = (_retargetedItem !== nil) ? _itemInfosForItems[[_retargetedItem UID]] : _rootItemInfo,
|
||||
retargetedChildItem = (_retargedChildIndex !== CPOutlineViewDropOnItemIndex) ? retargetedItemInfo.children[_retargedChildIndex] : _retargetedItem;
|
||||
|
||||
_retargetedDropRow = [self rowForItem:retargetedChildItem];
|
||||
}
|
||||
|
||||
- (void)_draggingEnded
|
||||
|
||||
Reference in new issue
Block a user