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

Context menu is displayed out of screen #8838

Closed
acouvert-msft opened this issue Sep 6, 2023 · 1 comment
Closed

Context menu is displayed out of screen #8838

acouvert-msft opened this issue Sep 6, 2023 · 1 comment
Labels
area-Popup bug Something isn't working product-winui2 team-Controls Issue for the Controls team

Comments

@acouvert-msft
Copy link

Describe the bug

Depending of where it is triggered, a context menu may be partially displayed outside the application window.
If the window is on the edge of the screen, the context menu won't be visible / accessible.

Steps to reproduce the bug

  1. Open WinUI 2 Gallery
  2. Navigate to RichTextBlock page
  3. Move the application to the right edge of the screen
  4. Move the mouse as right as possible on top of one of the RichEditBox and right click to show the context menu.
  5. See that the menu is partially displayed outside the screen.

Expected behavior

The context menu should always be fully visible.

Screenshots

repro

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@acouvert-msft acouvert-msft added the bug Something isn't working label Sep 6, 2023
@bpulliam bpulliam added team-Controls Issue for the Controls team area-Popup labels Oct 18, 2023
@ranjeshj
Copy link
Contributor

This is fixed in WinUI3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Popup bug Something isn't working product-winui2 team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants