react-flow-chart
react-flow-chart copied to clipboard
BUG: Links don't update when node size changes
When using custom node components with a variable width or height, the start and end points of links will not update when the node size changes.
The ports and the link start match up at first
But then go out of sync when the node size changes
Should the position props on ports update when the nodeSize changes? Where is their position initially set?
These should update when node.size is updated, see:
https://github.com/MrBlenny/react-flow-chart/blob/d47bcbd2c65d53295b12174ee74b25f54c497a36/src/components/Port/Port.wrapper.tsx#L50