From 1413ba695ee3efcf8686f8a6c618ff0cdda634db Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 23 May 2023 16:06:17 -0400
Subject: from last

---
 src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx')

diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
index bb41cd72e..e2b882389 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx
@@ -174,16 +174,13 @@ export class PhysicsSimulationBox extends ViewBoxAnnotatableComponent<FieldViewP
     // Constants
     xMin = 0;
     yMin = 0;
-    xMax = 100;
-    yMax = 100;
+    xMax = this.props.PanelWidth() * 0.6;
+    yMax = this.props.PanelHeight() * 0.9;
     color = `rgba(0,0,0,0.5)`;
     radius = 50;
     wallPositions: IWallProps[] = [];
 
     componentDidMount() {
-        this.xMax = this.props.PanelWidth() * 0.6;
-        this.yMax = this.props.PanelHeight() * 0.9;
-
         // Setup simulation
         this.setupSimulation();
 
-- 
cgit v1.2.3-70-g09d2

