Skip to content

[BUG] Controls in Popup have layout issues since .NET 8 / MAUI 8 (Android) #1575

@tschramme86

Description

@tschramme86

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

Since upgrading my project from MAUI 7 to 8, the functionality of the MCT Popup View on Android is somehow broken. A lot of 3rd party controls (not only MCT controls) inside the Popup now have rendering problems, e.g. it looks like their own default style is not fully applied, sometimes text is not properly rendered, etc.

For the sake of simplicity for this bug report, I created a minimal reproducible example just with MCT controls:

  • When the AvatarView is put on a normal ContentPage it is displayed as expected
  • When the same AvatarView is put in a Popup view, the inner text is misplaced

<toolkit:AvatarView Text="AB" />

In normal Page:
image

In Popup - inner text is aligned top, not centered:
image

Expected Behavior

No layouting/styling issues of controls inside a Popup view, e.g. initials are properly centered in the popup of the provided example project.

Steps To Reproduce

  1. Open and run the provided sample project on Android
  2. Observe on the main page that the AvatarView looks as expected
  3. Click the "Open Popup" button
  4. See that the same AvatarView in the popup has a misplaced text

Link to public reproduction project repository

https://github.com/tschramme86/BugCTPopupNet8

Environment

- .NET MAUI CommunityToolkit: 7.0.0
- OS: Android 33
- .NET MAUI: 8.0.3

Anything else?

Just to emphasis again: This bug report is not about the AvatarView itself. I encounter also rendering/styling problems with other controls that I put into a Popup view, since I upgraded my project to .NET8/MAUI8. I just picked the AvatarView as an example to demonstrate a general problem with the Popup since the upgrade.

What I can see so far is that it only affects Android. When running as Windows App there are no such problems, and on iOS I'm not able to test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/viewsIssue/Discussion/PR that has to do with ViewsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions