Skip to content

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

Closed

Description

@Pastajello

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:

Screen.Recording.2024-05-23.at.15.40.03.mov

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:
#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

Activity

  1. added
    t/bug
    on May 23, 2024
  2. github-actions commented on May 23, 2024

    @github-actions
    Contributor

    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.

  3. added this to the .NET 8 SR6 milestone on May 23, 2024
  4. added
    p/0
    on May 24, 2024
  5. moved this from Todo to In Progress in MAUI SDK Ongoingon May 27, 2024
  6. moved this from In Progress to Done in MAUI SDK Ongoingon May 30, 2024
  7. locked and limited conversation to collaborators on Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-controls-borderfixed-in-8.0.60fixed-in-9.0.0-preview.5.24307.10p/0platform/androidt/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions