diff options
author | geireann <geireann.lindfield@gmail.com> | 2025-02-20 14:50:56 -0500 |
---|---|---|
committer | geireann <geireann.lindfield@gmail.com> | 2025-02-20 14:50:56 -0500 |
commit | ec1c58855b7209c49026e98185bd52906aa84a37 (patch) | |
tree | b8105944f3815ace8f6aca017c4f5d89abcace9d /src/client/views/nodes/ImageBox.tsx | |
parent | 5f6924e7c7ebc04ed5514dba9fe6d8a5528f952b (diff) |
enabled non-uniform image resize
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 caefbf542..697577955 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -147,7 +147,7 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { this._disposers.path = reaction( () => ({ nativeSize: this.nativeSize, width: NumCast(this.layoutDoc._width) }), ({ nativeSize, width }) => { - if (layoutDoc === this.layoutDoc || !this.layoutDoc._height) { + if ((layoutDoc === this.layoutDoc || !this.layoutDoc._height) && !this.layoutDoc._layout_nativeDimEditable) { this.layoutDoc._height = (width * nativeSize.nativeHeight) / nativeSize.nativeWidth; } }, |