Skip to content

[BUG] CommunityToolkit.Maui.Views.Popup Button Text Alignment #1489

@alaskanrogue

Description

@alaskanrogue

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

If a popup appears after restoring the application from a background state, the button text is aligned to the left where the text is centered if the popup is created while the application is in a foreground state.

Foreground
image

Background
image

Expected Behavior

Button text aligned center.

Steps To Reproduce

    1. Create a simple Android application which can create a popup and is designed to operate in a background state as while as foreground.
  1. Trigger the popup appearance after a short period of time, i.e., 10 seconds, so that there is sufficient time to move the application to the background and activate the popup appearance after the background state is entered.

Link to public reproduction project repository

https://github.com/cat0363/MauiComm-IssueForeBackChange

Environment

.NET 7.0.96

ios 16.4.8968-net8-rc2/8.0.100-rc.2
android 34.0.0-rc.2.468/8.0.100-rc.2

.NET MAUI 6.0

VS 17.8.34219.65

Anything else?

NA

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