[data grid] Autosize not resizing columns properly when rows are fetched asynchronously #14754
Labels
component: data grid
This is the name of the generic UI component, not the React module!
feature: Column resize
regression
A bug, but worse
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/elastic-poitras-zlvs3v
Steps:
expand: true
Current behavior
Columns do not fit the datagrid and horizontal scrollbar is visible when data is fetched asynchronously.
Problem seems to happen only when there's a certain number of rows. In the example, it's 10. Under 10, the autosize feature works well.
Expected behavior
All columns should fit inside the datagrid without horizontal scrollbar showing.
Context
This is especially annoying when the last column is aligned to the right, hiding important information. The user should be able to view the column without having to scroll.
Your environment
npx @mui/envinfo
Search keywords: DataGrid Autosize
The text was updated successfully, but these errors were encountered: