diff options
author | A.J. Shulman <Shulman.aj@gmail.com> | 2025-05-11 11:13:09 -0400 |
---|---|---|
committer | A.J. Shulman <Shulman.aj@gmail.com> | 2025-05-11 11:13:09 -0400 |
commit | 3c28aa3a706869d818bc8a089e8d1a53f7234bc0 (patch) | |
tree | eab99724a6908fcfe17de08f0771099306a099df /src/client/views/nodes/WebBox.tsx | |
parent | b87b2105e966928518c96c7702b68c12344ffdd7 (diff) |
old screenshot?
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 0f0008700..045af7ecd 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -1198,7 +1198,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { TraceMobx(); // const previewScale = this._previewNativeWidth ? 1 - this.sidebarWidth() / this._previewNativeWidth : 1; const pointerEvents = this.layoutDoc._lockedPosition ? 'none' : (this._props.pointerEvents?.() as Property.PointerEvents | undefined); - // const scale = previewScale * (this._props.NativeDimScaling?.() || 1); + const scale = this._props.NativeDimScaling?.() || 1; return ( <div className="webBox-outerContent" @@ -1295,6 +1295,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps>() { TraceMobx(); const containerWidth = NumCast(this.layoutDoc._width) || this._props.PanelWidth(); const pointerEvents = this.layoutDoc._lockedPosition ? 'none' : (this._props.pointerEvents?.() as Property.PointerEvents); + const scale = this._props.NativeDimScaling?.() || 1; // Force the component to be square this.layoutDoc._height = containerWidth; |