-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
#15086
Comments
I think this is caused by passing This value is used inside IMHO the value of |
showColumnVerticalBorder
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. |
@KenanYusuf Thank you for the fix. It works great on my simplified example. But having more columns and groups, it does not work out anymore. I created a forked example with your fixed version here, using some filler columns and groups in between added to the original example: https://stackblitz.com/edit/react-h9qpvr-u62rjb If that 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 show the first column), then the additional border is there. If the window is wider, that the beginning of the last column can be seen, it works again. Should I open a new issue for that or am I maybe missing something there? |
Hey @hendrikpeilke it would be great if you could open a new issue. This is probably happening due to virtualization of the columns. I do noticed that the border also somehow disappears, so it would be great to look into this specifically |
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-h9qpvr
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
trying to make a neat looking table with borders and column groups
Your environment
npx @mui/envinfo
Search keywords: datagrid group header border showColumnVerticalBorder
The text was updated successfully, but these errors were encountered: