diff options
author | bobzel <zzzman@gmail.com> | 2024-01-24 16:13:27 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-01-24 16:13:27 -0500 |
commit | c8be94244bcd094efba739e5a46034bceccea80f (patch) | |
tree | fa9648c3ecad6f9725173f0847d4ab0c26af234c /src/client/views/nodes/ImageBox.tsx | |
parent | af380979349308077e13fc12a2d09255b7f05f28 (diff) |
several fixes to drag/drop so that dropAction's set on target work for tree views, notetaking, formattedText, etc. make bringToFront an optional prop.
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index 2a10bd766..923aead64 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -227,7 +227,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() impl this._props.addDocTab(cropping, OpenWhere.inParent); } DocumentManager.Instance.AddViewRenderedCb(cropping, dv => setTimeout(() => (dv.ComponentView as ImageBox).setNativeSize(), 200)); - this._props.bringToFront(cropping); + this._props.bringToFront?.(cropping); return cropping; }; |