[data grid] auto-sizing of column headers fails when header text exceeds cell content length #16451
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
Steps:
Current behavior
Columns auto-size based only on the cell content, causing the header text to be truncated if it's longer than the content.
Expected behavior
The column should auto-size to fit the header text and ensure that the header text is visible without manual resizing.
Context
When using the auto-sizing feature in MUI Data Grid, columns containing shorter content than the header text do not resize correctly to accommodate the full header text. This results in truncated headers, affecting readability and the overall user experience.
Your environment
Tested on Edge and Chrome
npx @mui/envinfo
Search keywords: data grid header text cut off
Order ID: 98399
The text was updated successfully, but these errors were encountered: