Skip to content

Commit

Permalink
[DataGrid] Fix double border under header (#12349)
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Spear <[email protected]>
Co-authored-by: Rom Grk <[email protected]>
  • Loading branch information
joespeargresham and romgrk authored Mar 6, 2024
1 parent 6733cf7 commit 2119870
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ function GridVirtualScroller(props: GridVirtualScrollerProps) {
getRenderZoneProps,
getScrollbarVerticalProps,
getScrollbarHorizontalProps,
getRows,
} = virtualScroller;

const rows = getRows();

return (
<Container className={classes.root} {...getContainerProps()}>
<Scroller className={classes.scroller} {...getScrollerProps()} ownerState={rootProps}>
Expand All @@ -84,12 +87,12 @@ function GridVirtualScroller(props: GridVirtualScrollerProps) {

<Content {...getContentProps()}>
<RenderZone {...getRenderZoneProps()}>
{virtualScroller.getRows()}
{rows}
{<rootProps.slots.detailPanels virtualScroller={virtualScroller} />}
</RenderZone>
</Content>

<SpaceFiller />
{rows.length > 0 && <SpaceFiller />}

<BottomContainer>
<rootProps.slots.pinnedRows position="bottom" virtualScroller={virtualScroller} />
Expand Down

0 comments on commit 2119870

Please sign in to comment.