Skip to content

[BUG] Android popup. Layout breaks if data is populated after the popup is shown. #1423

@Hooterr

Description

@Hooterr

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Populating labels after the popup is shown causes layout issues on Android. This is a huge issue if you need to use any sort of binding inside the popup.

When the labels are populated immediately

Screenshot_1695383002

When the labels are populated a split second later, by a binding for isntance.
Screenshot_1695383089

As you can see the longer labels don't split into multiple lines correctly, or the single line label doesn't respect HorizontalTextAlignment. I have tried couple of layouts including Grid and StackLayout or ScrollView but no combination fixes the issue.

Expected Behavior

Changing / Setting text values for labels or other text based controls shouldn't break layouts inside the popup.

Steps To Reproduce

  1. Show a popup
  2. After it's visible set Text values for the labels

Link to public reproduction project repository

https://github.com/Hooterr/PopupLayoutIssue

Environment

- .NET MAUI CommunityToolkit: 5.3.0
- OS: Macos
- .NET MAUI: 7.0.92

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions