Skip to content

Commit 7bf8b70

Browse files
committed
only accept max values for allowed resizing directions
1 parent ec038c7 commit 7bf8b70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/extensions/react-flow/nodes/NodeContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,8 @@ export function NodeContent<CONTENT_PROPS = any>({
520520
? {
521521
width,
522522
height,
523-
maxWidth: resizeMaxDimensions?.width ?? undefined,
524-
maxHeight: resizeMaxDimensions?.height ?? undefined,
523+
maxWidth: resizeDirections.right ? resizeMaxDimensions?.width ?? undefined : undefined,
524+
maxHeight: resizeDirections.bottom ? resizeMaxDimensions?.height ?? undefined : undefined,
525525
}
526526
: {};
527527

0 commit comments

Comments
 (0)