From 3c28aa3a706869d818bc8a089e8d1a53f7234bc0 Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Sun, 11 May 2025 11:13:09 -0400 Subject: old screenshot? --- src/client/views/nodes/WebBox.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/views/nodes/WebBox.tsx') 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() { 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 (
() { 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; -- cgit v1.2.3-70-g09d2