chore(nodes): set dimensions after mount
This commit is contained in:
@@ -69,6 +69,8 @@ watch(
|
||||
onBeforeUnmount(() => observer.stop())
|
||||
|
||||
onMounted(() => {
|
||||
updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
|
||||
|
||||
watch(
|
||||
[
|
||||
() => node.position.x,
|
||||
|
||||
@@ -27,7 +27,7 @@ onMounted(async () => {
|
||||
// hide graph until dimensions are ready, so we don't have jumping graphs (ssr for example)
|
||||
ready = true
|
||||
|
||||
fitViewOnInit && fitView()
|
||||
fitViewOnInit?.value && fitView()
|
||||
emits.paneReady({
|
||||
id,
|
||||
nodes,
|
||||
|
||||
Reference in New Issue
Block a user