-
Notifications
You must be signed in to change notification settings - Fork 52
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
Drawing error when border size set to zero. #179
Comments
I had seen this before, at some point. I think this is a windows-only bug in upstream MAUI or WinUI We use a combination of background color and padding at the DataGridCell level to efficiently produce a border effect. Compared to the slow Border controls. I had tried using ColumnSpacing at the DataGridRow level but I think it had some problems. Using an actual Border control wouldn't help, either, since apparently resizing Border controls on Windows is likewise problematic. dotnet/maui#20407 The current approach of doing borders at the cell-level in general probably isn't ideal, because the widths are actually doubled. So if you want borders that have a width of 1, you would need to set BorderThickness to 0.5 Perhaps refactoring to using ColumnSpacing will work better today than in the past. |
Just tried it. Using ColumnSpacing works but has the same issue. |
There was a bugfix in MAUI recently that may be related. |
Describe the bug
There appears to be a minor issue with the borders if the border size is set to zero.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When the border size is set to zero, no vertical borders should be visible.
Screenshots
First example:
After changing the size of the window, the bar has moved:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: