Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] Popup on Windows Layouts Off-Screen

Open daltzctr 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

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

daltzctr avatar May 16 '24 17:05 daltzctr

I have seen this also on Windows. (toolkit 9.0.1, Windows 10 Pro latest, .NET MAUI 8.0.61)

DennisWelu avatar Jul 03 '24 18:07 DennisWelu