fix: use correct ELK root for handler node coordinate extraction
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 58s
CI / docker (push) Successful in 39s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 36s

Handler section nodes were positioned relative to rootNode, but they
live under separate handlerRoot ELK graphs. Using getElkRoot() to find
each node's actual root ensures correct absolute coordinates.

This combined with the POLYLINE edge routing should eliminate the
Y-offset misalignment between main flow nodes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-27 21:53:36 +01:00
parent 56f98671ca
commit 3751762c69

View File

@@ -302,8 +302,11 @@ public class ElkDiagramRenderer implements DiagramRenderer {
ElkNode elkNode = elkNodeMap.get(rn.getId());
if (elkNode == null) continue;
// Use the correct root for coordinate calculation:
// handler nodes use their handler root, main flow uses rootNode
ElkNode coordRoot = getElkRoot(elkNode);
positionedNodes.add(extractPositionedNode(rn, elkNode, elkNodeMap,
compoundNodeIds, compoundInfos, rootNode));
compoundNodeIds, compoundInfos, coordRoot));
}
}