diff options
author | bobzel <zzzman@gmail.com> | 2024-03-04 12:55:05 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-04 12:55:05 -0500 |
commit | 49cfa95fdb3653a1224d4e5e3380e111c8e2014f (patch) | |
tree | 193b366687111c9bc76355c5fd51e8ab1af94069 /src/client/views/nodes/ImageBox.tsx | |
parent | 63f119fb99dc1f658b7e3edad5da64e9cf686ada (diff) |
changes to restore template menu and fix freeform templates to always show contents. Fix for alt-dropping an image to replace another image.
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index 923aead64..251235b93 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -141,6 +141,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() impl const targetField = Doc.LayoutFieldKey(layoutDoc); const targetDoc = layoutDoc[DocData]; if (targetDoc[targetField] instanceof ImageField) { + added = true; this.dataDoc[this.fieldKey] = ObjectField.MakeCopy(targetDoc[targetField] as ImageField); Doc.SetNativeWidth(this.dataDoc, Doc.NativeWidth(targetDoc), this.fieldKey); Doc.SetNativeHeight(this.dataDoc, Doc.NativeHeight(targetDoc), this.fieldKey); |