Skip to content

Commit 61f6f42

Browse files
authored
fix: Height adjustment for Virtualized layout (#8333)
1 parent 2aa1851 commit 61f6f42

File tree

1 file changed

+2
-2
lines changed
  • packages/@react-stately/virtualizer/src

1 file changed

+2
-2
lines changed

packages/@react-stately/virtualizer/src/Size.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export class Size {
1515
height: number;
1616

1717
constructor(width = 0, height = 0) {
18-
this.width = width;
19-
this.height = height;
18+
this.width = Math.max(width, 0);
19+
this.height = Math.max(height, 0);
2020
}
2121

2222
/**

0 commit comments

Comments
 (0)