Skip to content

Commit a3d2c48

Browse files
authored
fix: miscentered empty state and loaders in S2 TableView (#9980)
1 parent d45d195 commit a3d2c48

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/@react-spectrum/s2/src/TableView.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,11 @@ export class S2TableLayout<T> extends TableLayout<T> {
236236
return layoutNode;
237237
}
238238

239-
// y is the height of the headers
240-
protected buildBody(y: number): LayoutNode {
241-
let layoutNode = super.buildBody(y);
239+
protected buildRowGroup(y: number, node: GridNode<T>): LayoutNode {
240+
let layoutNode = super.buildRowGroup(y, node);
241+
if (node.type !== 'tablebody') {
242+
return layoutNode;
243+
}
242244
let {layoutInfo} = layoutNode;
243245
// Needs overflow for sticky loader
244246
layoutInfo.allowOverflow = true;

0 commit comments

Comments
 (0)