[data grid] Issue using row spanning and dynamic row height together #16493
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
support: premium standard
Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps:
getRowHeight={()=>"auto"}
Current behavior
Selection of the spanned cell without dynamic row height:
Selection of same cell with dynamic row height on:
As you can see, it also seems to affect the padding (or it could be that the dynamic row height is "calculating" a lower row height overall. It also seems to cause the cell borders not to render as well?
Expected behavior
I would expect that the examples look the same in this case, there should be no different except when a longer text is used in the first column, it is wrapped and the row is expanded.
Here is what it looks like with row spanning but no dynamic row height:
Here is with both:
Context
I'm trying to get a data grid to show both spanned columns, but also have some longer text wrapped within the spanned column and on cells that aren't spanned, have them wrapped too if they are long. This does not seem to be achievable in the data grid.
Your environment
npx @mui/envinfo
Search keywords: unstable_rowSpanning row spanning dynamic height getRowHeight
Order ID: 90059
The text was updated successfully, but these errors were encountered: