dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.99k stars 1.72k forks source link

[Android] Border doesnt expand on Content size changed #22606

Closed Pastajello closed 3 months ago

Pastajello commented 3 months ago

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

  1. Create new MAUI project
  2. Add Border with some Content(a Grid for example)
  3. Add a way to change the Content size (change HeightRequest of Grid)
  4. 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

github-actions[bot] commented 3 months ago

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:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.