chore(core): update pos on zindex change

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-01-10 11:10:40 +01:00
committed by Braks
parent 0f21d82bf0
commit 06451b4d0d
@@ -118,6 +118,7 @@ watch(
() => node.dimensions.width,
() => parentNode?.dimensions.height,
() => parentNode?.dimensions.width,
() => node.zIndex,
],
([newX, newY, parentX, parentY, parentZ]) => {
let zIndex = isNumber(node.zIndex) ? node.zIndex : 0