Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] Popup doesn't work on Android when there is a surrounding Frame element. It works well on Windows.

Open GerhardMauerberger opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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

  • [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

Current Behavior

A Popup with a surrounding Frame element does not work on Android. It works well on Windows. On Android the correct size of the Popup and the correct background color is visible but none of the controls. The Popup is completly empty.

Expected Behavior

On Windows it works as I expect it to. You can even use padding and nice rounded corners.

Steps To Reproduce

  1. Open und run the attached GitHup project.
  2. Use an Adroid device and run PopupWithFrame
  3. Click on the button of MainPage to see the empty Popup.

Link to public reproduction project repository

https:://github.com/GerhardMauerberger/PopupWithFrame.git

Environment

- .NET MAUI CommunityToolkit:7.0.0
- OS: Android 10.0 - API 29
- .NET MAUI: 8.0

Anything else?

No response

GerhardMauerberger avatar Dec 01 '23 17:12 GerhardMauerberger

I tested it and the text from label does not show up. I went and created my project using DI and standard pattern with same behavior and issue.

Edit: I went and created a second project to just test a label nested inside a frame to see what would happen. Using the above example it did not have any issues on android if rendered outside a popup.

ne0rrmatrix avatar Dec 01 '23 21:12 ne0rrmatrix

I have tested the sample app provided on this issue, and it is fixed using the latest version of .NET MAUI Community Toolkit 9.0.2 and .NET MAUI 8.0.70. I'm closing this issue.

Screenshot_1721682954

vhugogarcia avatar Jul 22 '24 21:07 vhugogarcia