Merge pull request #1590 from doctoroyy/fix/first-render

fix: avoid render all nodes at first render if set width
This commit is contained in:
Moritz Klack
2021-12-03 23:28:43 +01:00
committed by GitHub
+2 -2
View File
@@ -153,8 +153,8 @@ export const parseNode = (node: Node, nodeExtent: NodeExtent): Node => {
type: node.type || 'default',
__rf: {
position: clampPosition(node.position, nodeExtent),
width: null,
height: null,
width: node.style?.width || null,
height: node.style?.height || null,
handleBounds: {},
isDragging: false,
},