diff options
| author | bobzel <zzzman@gmail.com> | 2024-01-24 17:10:48 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-01-24 17:10:48 -0500 |
| commit | 1680758323f87d15072f485c0156e6b079aad173 (patch) | |
| tree | 219571c547b86531cde151e0258977fc3887938b /src/client/views/collections/CollectionTreeView.tsx | |
| parent | c8be94244bcd094efba739e5a46034bceccea80f (diff) | |
added dragConfig() to allow components to set custom docDragData fields. got rid of treeViewDoc prop
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index cc2cf87aa..741013148 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -150,6 +150,10 @@ export class CollectionTreeView extends CollectionSubView<Partial<collectionTree } }; + configDrag = (dragData: DragManager.DocumentDragData) => { + dragData.treeViewDoc = this.Document; + }; + screenToLocalTransform = () => this.ScreenToLocalBoxXf().translate(0, -this._headerHeight); @action |
