diff options
author | IEatChili <nanunguyen99@gmail.com> | 2024-06-13 16:28:24 -0400 |
---|---|---|
committer | IEatChili <nanunguyen99@gmail.com> | 2024-06-13 16:28:24 -0400 |
commit | 8aee62b8623e23f6478960291857ee47f50f9aaf (patch) | |
tree | 6fd3bf2eae5bbd6979a833d0a46d93e21b69a9fe /src/client/views/nodes/ImageBox.tsx | |
parent | 05e634842f7d798b8f8c201c7ff7821b32de376f (diff) |
feat: more ui updates
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index e4b3a1b9b..3da878a4f 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -173,6 +173,10 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { Doc.SetNativeHeight(this.dataDoc, Doc.NativeHeight(targetDoc), this.fieldKey); } } + const layoutDoc = de.complete.docDragData?.draggedDocuments[0]; + const targetField = Doc.LayoutFieldKey(layoutDoc); + const targetDoc = layoutDoc[DocData]; + console.log(targetDoc[targetField]); added === false && e.preventDefault(); added !== undefined && e.stopPropagation(); return added; |