Skip to content

Commit

Permalink
[DataGrid] Fix row-spanning in combination with column-pinning (@lhil…
Browse files Browse the repository at this point in the history
…gert9) (#15460)

Co-authored-by: Lucas Hilgert <[email protected]>
Co-authored-by: Bilal Shafi <[email protected]>
  • Loading branch information
3 people authored Nov 25, 2024
1 parent 3e0fdae commit 2523a14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/x-data-grid/src/components/cell/GridCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ const GridCell = React.forwardRef<HTMLDivElement, GridCellProps>(function GridCe
if (rowSpan > 1) {
cellStyle.height = `calc(var(--height) * ${rowSpan})`;
cellStyle.zIndex = 5;

if (isLeftPinned || isRightPinned) {
cellStyle.zIndex = 6;
}
}

return cellStyle;
Expand Down

0 comments on commit 2523a14

Please sign in to comment.