diff options
author | bobzel <zzzman@gmail.com> | 2025-06-02 17:52:39 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-06-02 17:52:39 -0400 |
commit | 14f4b5c06afeed7e362de32c268fc6631e62b6b7 (patch) | |
tree | b1c56fb193b9c2560bfff11ac2657ebe92c22ad6 /src/client/views/nodes/ImageBox.tsx | |
parent | 83bfca49c38e12dc575b5037c8fac25f3c21d6c5 (diff) | |
parent | 8b6f03c191a355a34fa01183ce2b6bd86240ebaf (diff) |
Merge branch 'master' into task_nodes_aarav
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 30fc44f62..8ed59c6e1 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -175,6 +175,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { () => ({ nativeSize: this.nativeSize, width: NumCast(this.layoutDoc._width), height: this.layoutDoc._height }), ({ nativeSize, width, height }) => { if (!this.layoutDoc._layout_nativeDimEditable || !height || this.layoutDoc.layout_resetNativeDim) { + if (!this._props.TemplateDataDocument) this.layoutDoc._nativeWidth = this.layoutDoc._nativeHeight = undefined; this.layoutDoc.layout_resetNativeDim = undefined; // reset dimensions of templates rendered with content or if image changes. afterwards, remove this flag. this.layoutDoc._height = (width * nativeSize.nativeHeight) / nativeSize.nativeWidth; } |