From 152b75675a8fba84c33cfaa5bd614ff8c6c67012 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Tue, 12 Nov 2024 01:16:25 +0100 Subject: [PATCH] pass step position for more accurate comment positioning --- client/src/components/Workflow/Editor/modules/layout.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/Workflow/Editor/modules/layout.ts b/client/src/components/Workflow/Editor/modules/layout.ts index 3c6de54844cd..843867c7def1 100644 --- a/client/src/components/Workflow/Editor/modules/layout.ts +++ b/client/src/components/Workflow/Editor/modules/layout.ts @@ -235,6 +235,8 @@ function stepToElkStep( id: `${step.id}`, height: roundingFunction(position.height), width: roundingFunction(position.width), + x: step.position?.left, + y: step.position?.top, layoutOptions: { "elk.portConstraints": "FIXED_POS", },