fix: vertically center DO_TRY block relative to outer flow nodes
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m0s
CI / docker (push) Successful in 51s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 37s

Remove PORT_ALIGNMENT_DEFAULT=BEGIN so NETWORK_SIMPLEX centers edges
at the vertical midpoint of the compound instead of the top.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-28 17:47:34 +01:00
parent d79e7d0168
commit 0516207e83

View File

@@ -562,10 +562,6 @@ public class ElkDiagramRenderer implements DiagramRenderer {
elkNode.setProperty(CoreOptions.PADDING,
new org.eclipse.elk.core.math.ElkPadding(COMPOUND_TOP_PADDING,
COMPOUND_SIDE_PADDING, COMPOUND_SIDE_PADDING, COMPOUND_SIDE_PADDING));
// Attach edges at the top of the compound so the main flow stays level
elkNode.setProperty(CoreOptions.PORT_ALIGNMENT_DEFAULT,
org.eclipse.elk.core.options.PortAlignment.BEGIN);
// Separate try body children from handler children
List<RouteNode> tryBodyChildren = new ArrayList<>();
List<RouteNode> handlerChildren = new ArrayList<>();