-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Border has a 1 pixel thickness even when it's thickness property is set to 0. #20156
Comments
Hi @GlacierFox. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Im seeing the same issue on iOS, Border appears to have an extra 1px margin in some/all circumstances. Im pretty sure I posted this issue a year or so ago, but haven't really used Maui again until recently. EDIT: In fact I definitely did post about this, I remember looking at screenshots created by MS tester that said it didn't have the problem, but it did when you zoomed in, you could see the 1px border that shouldn't be there. Anyway, for now Ive switched back to Frame, its ok for my immediate needs. |
Here's simple starter project which shows the error. |
I've had to do the same for the time being. I hadn't really noticed it until I recently had to have two items lie flush with eachother. #7764 seems to be an old version of the problem that seems like it was fixed and then broke again. |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Verified this on VS 17.10.0 Preview 1.0(8.0.6). Repro on Windows 11, Android 14.0-API34, iOS 17.2 and MacCatalyst with below Project: |
Description
I've got two labels in a vertical stack layout surround by a border so I can round the corners. If you look on the right of the image, the yellow and blue labels have a tiny gap in between which I can't seem to get rid of. The same can be seen between the purple and green.
If I remove the border the gap goes away. Here's the XAML of the right-hand
VerticalStackLayout
with the yellow and blue labels inside.Surprisingly, if I was to change the
Border StrokeThickness
to any value e.g.2
and change it back to0
with hot-reload enabled, the gap will close and look normal as you can see on the right (blue and yellow labels).Unfortunately as soon as I restart my app or start debugging again and reload, the gap comes back.
Steps to Reproduce
1- Create a VerticalStackLayout and put a view in there like a Label surrounded by a border.
2- Set the stroke thickness to 0 and notice that there's still a tiny gap in between.
Link to public reproduction project repository
Border Error Repo
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14 API 34
Did you find any workaround?
No.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: