Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Popup not centered with FlyoutBehaviour.Locked on macOS #2566

Open
2 tasks done
mpiechocki opened this issue Mar 3, 2025 · 0 comments · May be fixed by #1581
Open
2 tasks done

[BUG] Popup not centered with FlyoutBehaviour.Locked on macOS #2566

mpiechocki opened this issue Mar 3, 2025 · 0 comments · May be fixed by #1581
Labels
bug Something isn't working unverified

Comments

@mpiechocki
Copy link

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

I have a simple Flyout Shell that has FlyoutBehaviour set to Locked and PresentationMode set to NotAnimated. When I try to open a Popup from ShellContent, it is not appearing centered over the whole app and not even centered over the FlyoutItem contents:
Image
The Popup has VerticalOptions and HorizontalOptions set to Center:

<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
               x:Class="MauiApp1.NewPopup"
               VerticalOptions="Center"
               HorizontalOptions="Center">

    <VerticalStackLayout>
        <Label Text="This is a very important message!"/>
    </VerticalStackLayout>

</toolkit:Popup>

I'm on macOS, using VS Code and .net9.0-maccatalyst, with CommunityToolkit.Maui 11.1.0 and Microsoft.Maui.Contols 9.0.30.

Expected Behavior

I would expect the ability to open the popup centered over the whole application, but if that's not possible, to at least be centered over the contents of the current page.

Steps To Reproduce

  1. Open the reproduction project
  2. Click on Click me button on the opened page

Link to public reproduction project repository

https://github.com/mpiechocki/MauiPopup

Environment

- .NET MAUI CommunityToolkit: 11.1.0
- OS: macOS 15.3
- .NET MAUI: 9.0.14

Anything else?

No response

@mpiechocki mpiechocki added bug Something isn't working unverified labels Mar 3, 2025
@TheCodeTraveler TheCodeTraveler linked a pull request Mar 3, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant