-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Double click column border to autosize grid column width not working. #12733
Comments
Hey @mschaefer-gresham autosizeOptions={{
includeOutliers: true,
includeHeaders: true,
}} I am not 100% sure what kind of algorithm is used when the defaults, |
@mschaefer-gresham does that fix your use case? |
@michelengelen thank you. This appears to solve the issue. |
@mschaefer-gresham: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Double clicking a grid column to autosize it does not work most of the time. The below example is a fork from a grid example on the MUI website. With 5 rows the autosizing of 'Last name' does not work. But if you remove all but one column, then autosizing works.
2024-04-10_14-17-08.mp4
https://codesandbox.io/p/sandbox/thirsty-lovelace-cwwsp7?file=%2Fsrc%2FDemo.tsx%3A37%2C77
Current behavior
Double clicking column border to autosize does not work.
Expected behavior
It should work.
Context
Trying to autosize a column based on the width of the data in this column's rows.
Your environment
My example is a forked CodeBox from the MUI website.
Search keywords: autosize column width grid double-click
Order ID: 45466
The text was updated successfully, but these errors were encountered: