chore(nodes): set dimensions after mount

This commit is contained in:
bcakmakoglu
2022-06-06 22:25:43 +02:00
committed by Braks
parent ac41c0093e
commit e8923c8aae
2 changed files with 3 additions and 1 deletions

View File

@@ -69,6 +69,8 @@ watch(
onBeforeUnmount(() => observer.stop())
onMounted(() => {
updateNodeDimensions([{ id, nodeElement: nodeElement.value, forceUpdate: true }])
watch(
[
() => node.position.x,

View File

@@ -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,