Skip to content

Position the context menu inside the screen bounds#8776

Merged
JamesNK merged 4 commits intomainfrom
jamesnk/context-menu-position
Apr 15, 2025
Merged

Position the context menu inside the screen bounds#8776
JamesNK merged 4 commits intomainfrom
jamesnk/context-menu-position

Conversation

@JamesNK
Copy link
Copy Markdown
Member

@JamesNK JamesNK commented Apr 15, 2025

Description

Use screen size to calculate the position of the context menu. Can now be displayed to the left or above the cursor.

image

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

Comment thread src/Aspire.Dashboard/Components/Controls/AspireMenu.razor.cs Outdated
@JamesNK JamesNK merged commit c2d2ae8 into main Apr 15, 2025
174 checks passed
@JamesNK JamesNK deleted the jamesnk/context-menu-position branch April 15, 2025 23:40
@github-actions github-actions Bot locked and limited conversation to collaborators May 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants