aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebBox.tsx
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2025-05-11 11:13:09 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2025-05-11 11:13:09 -0400
commit3c28aa3a706869d818bc8a089e8d1a53f7234bc0 (patch)
treeeab99724a6908fcfe17de08f0771099306a099df /src/client/views/nodes/WebBox.tsx
parentb87b2105e966928518c96c7702b68c12344ffdd7 (diff)
old screenshot?
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r--src/client/views/nodes/WebBox.tsx3
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;