From 000cfd9e9cbf8edc3b3e26c7ce6ccf225268456a Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 18 Jan 2023 18:12:11 +0100 Subject: [PATCH] fix(core): increase timeout to 1 Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/src/components/Nodes/NodeWrapper.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/components/Nodes/NodeWrapper.vue b/packages/core/src/components/Nodes/NodeWrapper.vue index da42d899..eb568818 100644 --- a/packages/core/src/components/Nodes/NodeWrapper.vue +++ b/packages/core/src/components/Nodes/NodeWrapper.vue @@ -141,8 +141,8 @@ watch( watch([() => node.extent, () => nodeExtent], ([nodeExtent, globalExtent], [oldNodeExtent, oldGlobalExtent]) => { // update position if extent has actually changed if (nodeExtent !== oldNodeExtent || globalExtent !== oldGlobalExtent) { - // todo: can we solve this without a timeout? Otherwise the extent is not properly calculated - setTimeout(updatePosition) + // todo: can we solve this without a timeout? Without the timeout the initial extent is not properly calculated + setTimeout(updatePosition, 1) } })