-
-
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] Column Menu Positioning in MUI DataGridPremium #15121
Comments
Hey @Iuli1478 this is the default behavior. Screen.Recording.2024-10-30.at.10.56.46.mov |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Iuli1478 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. |
Continuing the discussion here as recommended by MUI support, with the correct MUI X license key applied for premium support: #15264 |
Steps to reproduce
Open a DataGridPremium with several columns.
Scroll the grid to a point where one of the column headers is near the bottom of the viewport.
Click the column menu button (three dots) to open the menu.
Notice that the menu extends below the screen and is not fully visible.
Try scrolling the page; the menu will close automatically.
Current behavior
The menu extends below the screen when it doesn’t fit in the available space, causing some options to be inaccessible. Attempting to scroll the page to reach those hidden options causes the menu to close, which makes it impossible to select those menu items.
Expected behavior
The column menu should automatically reposition itself to fit within the visible viewport. For example, it could open upwards if there's not enough space below or introduce an internal scroll for the menu itself.
Context
When using the MUI DataGridPremium, I encountered a problem with the column menu positioning. If the column menu is triggered near the bottom of the viewport, it extends below the visible screen area. This causes part of the menu to be inaccessible. Additionally, if I try to scroll the page to view the hidden menu options, the menu closes automatically, making it impossible to interact with the options that are out of view.
Your environment
npx @mui/envinfo
Search keywords: DataGrid column menu offscreen
The text was updated successfully, but these errors were encountered: