fix(core): use post flush when calculating new node pos
This commit is contained in:
@@ -158,7 +158,7 @@ const NodeWrapper = defineComponent({
|
|||||||
node.value.computedPosition = xyzPos
|
node.value.computedPosition = xyzPos
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ flush: 'pre', immediate: true },
|
{ flush: 'post', immediate: true },
|
||||||
)
|
)
|
||||||
|
|
||||||
watch([() => node.value.extent, nodeExtent], ([nodeExtent, globalExtent], [oldNodeExtent, oldGlobalExtent]) => {
|
watch([() => node.value.extent, nodeExtent], ([nodeExtent, globalExtent], [oldNodeExtent, oldGlobalExtent]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user