FlowFuse / flow-renderer

Apache License 2.0
5 stars 0 forks source link

The `labels` option causes odd node size rendering #17

Closed Steve-Mcl closed 2 months ago

Steve-Mcl commented 2 months ago

Current Behavior

Look at this demo rendering the the same flow. Top one has default options, 2nd one has the labels options set false. The computed size of the node is not correct and since Node-RED uses the centerpoint for positioning a node, it looks quite odd.

image

Expected Behavior

the option to not show labels should not affect positioning or size

Steps To Reproduce

run the built in demo npm run demo

Environment