[data grid] Discrepancy between data grid virtualScroller height and overlay #15916
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Rendering layout
Related to the data grid Rendering engine
support: premium standard
Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps:
Current behavior
The docs state that
(source)
However, at the same time it states
(source)
As a consequence, if I have pinned columns (that have a background via the filler container) and have no rows, the virtual spacer pushes away the background:
Expected behavior
It seems like these two are not aligned: Either the grid, by default, should take all the space of the parents (and therefore, so should the virtual scroller), or it should completely shrink down to two rows. However, it now is in this weird middle ground.
It's manually fixable by setting the
--DataGrid-overlayHeight
, but IMO this visual issue should not be the default.Context
A data grid with a pinned action column that may at times be empty, therefore being visually off.
Your environment
npx @mui/envinfo
Firefox and Chrome
Order ID: 95800
Search keywords: data grid, overlay, no rows, virtual scroller, virtualscroller
The text was updated successfully, but these errors were encountered: