refactor(react): use node.width/height for resizer changes

This commit is contained in:
moklick
2024-01-09 16:20:47 +01:00
parent 8487cb10e0
commit b18ef10e43
4 changed files with 7 additions and 7 deletions
@@ -219,9 +219,9 @@ export function NodeWrapper({
transform: `translate(${positionAbsoluteOrigin.x}px,${positionAbsoluteOrigin.y}px)`,
pointerEvents: hasPointerEvents ? 'all' : 'none',
visibility: initialized ? 'visible' : 'hidden',
width,
height,
...node.style,
width: width ?? node.style?.width,
height: height ?? node.style?.height,
}}
data-id={id}
data-testid={`rf__node-${id}`}