-
-
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] Right border calculation on column group headers does not work for last column group header on showColumnVerticalBorder with virtualization #15272
Comments
Thanks for opening a new issue for this @hendrikpeilke ... I see that @KenanYusuf already took it in his hands to fix it! 🚀 |
@hendrikpeilke thank you for taking a dive into the code to help solve this. Would you like to open a PR with the change? If not, it's on my list to work on later this week. |
@KenanYusuf I give it a try. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @hendrikpeilke 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
Link to live example: https://stackblitz.com/edit/react-h9qpvr-u62rjb
Steps:
Current behavior
You can see an additional, not expected right border on the column group header to the right:
Expected behavior
The right column group header does not show an additional border, i.e. does not have the css class
...--withRightBorder
Context
I'm trying to make a neat looking table with borders and column groups. The issue was adressed in #15086
If the fix from the linked issue works, seems to be dependent on the width of the demo window.
When the last group column is outside the window (or column buffer?) (e.g. window is only wide enough to only show the first column), then the additional border is there.
If the window is wider (e.g. such that the beginning of the last column can be seen), it works again. Thanks to the fix, from the issue mentioned above.
Your environment
npx @mui/envinfo
Search keywords: datagrid group header border showColumnVerticalBorder virtualization
The text was updated successfully, but these errors were encountered: