fix(nodes): dimensions not properly set on mount
This commit is contained in:
@@ -58,7 +58,7 @@ const dragging = useDrag({
|
|||||||
const observer = useResizeObserver(
|
const observer = useResizeObserver(
|
||||||
nodeElement,
|
nodeElement,
|
||||||
() => {
|
() => {
|
||||||
updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
|
updateNodeDimensions([{ id, nodeElement: nodeElement.value }])
|
||||||
},
|
},
|
||||||
{ box: 'content-box' },
|
{ box: 'content-box' },
|
||||||
)
|
)
|
||||||
@@ -97,7 +97,7 @@ onMounted(() => {
|
|||||||
() => {
|
() => {
|
||||||
updateNodeDimensions([{ id, nodeElement: nodeElement.value }])
|
updateNodeDimensions([{ id, nodeElement: nodeElement.value }])
|
||||||
},
|
},
|
||||||
{ flush: 'post' },
|
{ flush: 'post', immediate: true },
|
||||||
)
|
)
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|||||||
Reference in New Issue
Block a user