refactor(nodes): use content-box for resize observer
This commit is contained in:
@@ -52,9 +52,13 @@ const dragging = useDrag({
|
||||
},
|
||||
})
|
||||
|
||||
const observer = useResizeObserver(nodeElement, () => {
|
||||
updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
|
||||
})
|
||||
const observer = useResizeObserver(
|
||||
nodeElement,
|
||||
() => {
|
||||
updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
|
||||
},
|
||||
{ box: 'content-box' },
|
||||
)
|
||||
|
||||
watch(
|
||||
[() => node.width, () => node.height, () => node.type, () => node.sourcePosition, () => node.targetPosition],
|
||||
|
||||
Reference in New Issue
Block a user