Maui
Maui copied to clipboard
[BUG] Popup on Windows Layouts Off-Screen
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
- Create a button positioned with
HorizontalOptions=End - Open a popup whose width is ~200 (example, but most widths demonstrate the issue)
- 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
I have seen this also on Windows. (toolkit 9.0.1, Windows 10 Pro latest, .NET MAUI 8.0.61)