fix(core): increase timeout to 1

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-01-18 18:12:11 +01:00
committed by Braks
parent 19582de021
commit 000cfd9e9c

View File

@@ -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)
}
})