-
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
Nested Border renders top left corner bizarrely wrong with truncation in iOS/Windows (okay in Android) #17761
Comments
Hi @jonmdev. 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. |
If you can turn the code you posted above into a repro project, that will make it easier for anyone who wants to take a look at this to be able to debug it and have a shared codebase with you to work with. Also, if you can separate out the issues you are hitting into individual ones, that would be great. It's easier to fix issues if they're self contained on their own (and easy to group together later if they're caused by the same thing in the end) rather than trying to fix multiple issues within the same one. Thank you! |
Seems to be related to #17753 |
I am not sure why a GitHub repro project would be requested when I have already provided the simple code needed to reproduce it. The project can be reproduced in two steps:
There is no other step? It takes less than 1 minute to reproduce. (?) I can do it in about 10 seconds. (?) There are only ~40 lines of code to repro. I will remove the bounds issue and repost that in another thread as suggested. Thanks for any help. |
Broke up the report into two reports. Second report for bounds issue moved here: #17763 Thanks again. |
Hi @jonmdev. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version. You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository. 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. |
I posted demo code here though it is just verbatim my OP post code as described so anyone who wants to test it can see for themselves also if that is easier: |
Can confirm this is now working in 8.0.0-rc.2.23479.6 for Windows/iOS/Android. Closing. |
Description
If you nest two Border objects so one contains the other, and the outer Border object is set as a Rounded Rectangle, it will truncate the top left corner of the inner Border object in a bizarre fashion in Windows and iOS (while rendering correctly without this truncation on Android).
In Android, correct behavior is seen as follows with the demo code given. An outer dark blue background Border with rounded corners encircles an inner white background Border with no corner rounding and both are rendered correctly:
If the inner Border is set to round its corners in the proportional amount, you get a nice smooth and symmetrical effect:
However, in iOS and Windows, when the outer Border is set to rounded corners and the inner is not, you get a bizarre truncation of the top left corner of the inner Border:
And when you set the inner Border to proportionately round off, this truncation remains on the top left corner, preventing a truly smooth/symmetrical effect:
CONSEQUENCES
Steps to Reproduce
Create a blank MAUI project in Visual Studio 2022 with .NET 7.0 by File > New named "Border Corner Bug"
Copy and paste the following code to completely replace the default code of App.xaml.cs:
Run project in iOS and Windows to see the left top corner of the inner white Border is bizarrely rounded/truncated as shown in pictures above.
Run project in Android to see the left top corner of the inner Border is properly rendered by comparison without truncation.
Link to public reproduction project repository
https://github.com/jonmdev/Border-Corner-Bug
Version with bug
7.0.92 & 8.0
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows
Affected platform versions
iOS 16.7, Android, Windows 10
Did you find any workaround?
None.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: