fix(nodes): Recalculate handle bounds on position change

This commit is contained in:
Braks
2022-04-13 22:48:23 +02:00
parent 0dba6913a8
commit 79ede4cf84
+3 -1
View File
@@ -4,7 +4,7 @@ import { CSSProperties, isVNode } from 'vue'
import { useVueFlow } from '../../composables'
import { GraphNode, NodeComponent, SnapGrid } from '../../types'
import { NodeId, Slots } from '../../context'
import { getXYZPos } from '../../utils'
import { getHandleBounds, getXYZPos } from '../../utils'
interface NodeWrapperProps {
id: string
@@ -74,6 +74,8 @@ watch(
} else {
node.value.computedPosition = xyzPos
}
node.value.handleBounds = getHandleBounds(nodeElement.value, scale.value)
},
{ deep: true },
)