Autoresize does not properly resize columns that are scrolled far off screen when the resize is requested #15048
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Link to live example: (required)
https://codesandbox.io/p/sandbox/condescending-paper-lfpgkq?from-embed=&workspaceId=ff0972be-f965-4d9b-9731-28487014ad71
Steps:
Current behavior
Columns that are far outside of the viewport at the time the resize is requested are not resized properly. The narrower your viewport, the more columns will be improperly resized. If your viewport happens to be wide enough, the resizing will work fine.
Expected behavior
All columns should be resized correctly regardless of viewport
Context
I am displaying a data grid with a large amount of columns. The rows are fetched from a server and then the columns are resized automatically once fetching is complete. I would like for the columns to properly resize themselves instead of hardcoding some minimum widths to the columns which I am currently doing to work around the issue.
Your environment
npx @mui/envinfo
This was tested on Firefox and Chrome.
Search keywords: datagrid autoresize resize
Order ID or Support Key
89478
(sorry for the edit, the person with the receipt wasn't available to give it to me until just now)
The text was updated successfully, but these errors were encountered: