[Android] Border doesnt expand on Content size changed
Description
Hello,
I'm using nightly build to get the ltest fixes for MAUI. Recently I've found out that Border, that was once working, is now broken on Android. If We have a border, content and the content changes size, like showing or hiding content the border doesnt expand with the content:
https://github.com/dotnet/maui/assets/28345098/610b3b9e-323b-42c3-aada-9ac7c177ba75
The issue started on build https://dev.azure.com/xamarin/public/_artifacts/feed/maui-nightly/NuGet/Microsoft.Maui.Controls/overview/8.0.60-ci.net8.24266.1 with most probably this: https://github.com/dotnet/maui/pull/22347
Used to work on 8.0.60-ci.net8.10665+azdo.9579251
Steps to Reproduce
- Create new MAUI project
- Add Border with some Content(a Grid for example)
- Add a way to change the Content size (change HeightRequest of Grid)
- Change content size, check that border stroke, abckground has not increased in size BUT content size increased so now conent goes outside border.
Link to public reproduction project repository
https://github.com/Pastajello/BorderChangeContentSizeIssue
Version with bug
Nightly / CI build (Please specify exact version)
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.60-ci.net8.10665+azdo.9579251
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
Yes, switch back to Frame.
Relevant log output
No response
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- [regression/8.0.0] [Android] Border inside frame cause dont render content (#18526), similarity score: 0.82
- Clipping issues for Border control (all platforms, but different on each platform) (#18893), similarity score: 0.80
Closed similar issues:
- iOS, Android Border calculates it's size in a wrong way (#17275), similarity score: 0.81
- [Android] Border content should be centered like iOS when resizing (#17111), similarity score: 0.80
- [Android] Border not clipping correctly content Image w/ Margin & custom Clip (#17571), similarity score: 0.80
Note: You can give me feedback by thumbs upping or thumbs downing this comment.