aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-05-23 15:59:44 -0400
committerbobzel <zzzman@gmail.com>2023-05-23 15:59:44 -0400
commit26af8ab71bec926e4514c7df2d523f1635f55f9b (patch)
treed54595f0b9e687d2b6e45a2e29b0b81598a18a1b /src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
parentec0c8abac9b3a3064dd4f102df0fcc010cfca7cf (diff)
fixed resizing physbox container.
Diffstat (limited to 'src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx')
-rw-r--r--src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
index ac28ee4a0..c036f1041 100644
--- a/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
+++ b/src/client/views/nodes/PhysicsBox/PhysicsSimulationWeight.tsx
@@ -1062,7 +1062,7 @@ export default class Weight extends React.Component<IWeightProps, IState> {
<p
style={{
position: 'absolute',
- left: Math.round(this.props.xMax * 0.5 - 200 + this.props.wedgeWidth - 80) + 'px',
+ left: Math.round(this.props.xMax * 0.25 + this.props.wedgeWidth / 3) + 'px',
top: Math.round(this.props.yMax - 40) + 'px',
}}>
{Math.round(((Math.atan(this.props.wedgeHeight / this.props.wedgeWidth) * 180) / Math.PI) * 100) / 100}°