yeah, that's a personal ocd problem
This commit is contained in:
Ítalo Andrade
2021-10-01 17:32:27 +02:00
committed by GitHub
parent b3f102ce1b
commit 25bc0d2fe1
+1 -1
View File
@@ -49,7 +49,7 @@ const LayoutFlow = () => {
const nodeWithPosition = dagreGraph.node(el.id);
el.targetPosition = isHorizontal ? Position.Left : Position.Top;
el.sourcePosition = isHorizontal ? Position.Right : Position.Bottom;
// we need to pass a slighltiy different position in order to notify react flow about the change
// we need to pass a slightly different position in order to notify react flow about the change
// @TODO how can we change the position handling so that we dont need this hack?
el.position = { x: nodeWithPosition.x + Math.random() / 1000, y: nodeWithPosition.y };
}