Skip to content

[BUG] Popup on Windows Layouts Off-Screen #1890

@daltzctr

Description

@daltzctr

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

When a popup is positioned with an anchor the end of the screen (top-right, right), the popup is centered (usually correct), but because it's centered and the width of the popup expands beyond the window width, the popup gets cut off.

The previous behavior was to apply an offset so it fit inside of the window (correct).

Expected Behavior

Apply an offset to position of the popup so the popup content is always inside of the window

Steps To Reproduce

  1. Create a button positioned with HorizontalOptions=End
  2. Open a popup whose width is ~200 (example, but most widths demonstrate the issue)
  3. Observe popup content gets cut off

Link to public reproduction project repository

na

Environment

- .NET MAUI CommunityToolkit: 9.0.0
- OS: Windows 11 Home 22631.3593
- .NET MAUI: 8.0.21

Anything else?

No response

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