fix(nodes): re-measure nodes when dimensions are missing

This commit is contained in:
moklick
2024-02-13 17:19:32 +01:00
parent 4237775b6e
commit 04ba6e0e4e
4 changed files with 38 additions and 33 deletions
+2 -2
View File
@@ -94,8 +94,8 @@ export function adoptUserProvidedNodes<NodeType extends NodeBase>(
...n,
computed: {
positionAbsolute: n.position,
width: n.computed?.width || currentStoreNode?.computed?.width,
height: n.computed?.height || currentStoreNode?.computed?.height,
width: n.computed?.width,
height: n.computed?.height,
},
};
const z = (isNumeric(n.zIndex) ? n.zIndex : 0) + (n.selected ? selectedNodeZ : 0);