aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationBox.tsx7
1 files changed, 2 insertions, 5 deletions
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();