refactor(core): call fitViewOnInit when node dimensions are initially set

This commit is contained in:
braks
2024-02-05 07:51:12 +01:00
committed by Braks
parent 24c2091c7a
commit 0544fbdb6a
3 changed files with 9 additions and 19 deletions
@@ -199,10 +199,10 @@ const NodeWrapper = defineComponent({
getClass.value,
],
'style': {
visibility: node.value.initialized ? 'visible' : 'hidden',
zIndex: node.value.computedPosition.z ?? zIndex(),
transform: `translate(${node.value.computedPosition.x}px,${node.value.computedPosition.y}px)`,
pointerEvents: props.selectable || props.draggable ? 'all' : 'none',
visibility: node.value.initialized ? 'visible' : 'hidden',
...getStyle.value,
},
'tabIndex': props.focusable ? 0 : undefined,