From cf5597b8451e127db2ea3d2149634492c03eb57d Mon Sep 17 00:00:00 2001 From: peterkogo Date: Tue, 24 Jun 2025 10:59:23 +0200 Subject: [PATCH] Elevate child nodes +1 over the parent --- packages/system/src/utils/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/system/src/utils/store.ts b/packages/system/src/utils/store.ts index d94a7dff..1bfd029d 100644 --- a/packages/system/src/utils/store.ts +++ b/packages/system/src/utils/store.ts @@ -232,7 +232,7 @@ function calculateChildXYZ( return { x: absolutePosition.x, y: absolutePosition.y, - z: parentZ > childZ ? parentZ : childZ, + z: parentZ >= childZ ? parentZ + 1 : childZ, }; }