Skip to content

Fix context submenus overflowing past the bottom edge - #1672

Open
SigmaTel71 wants to merge 1 commit into
Valour-Software:version/0.8.2from
SigmaTel71:menu-bounds
Open

Fix context submenus overflowing past the bottom edge#1672
SigmaTel71 wants to merge 1 commit into
Valour-Software:version/0.8.2from
SigmaTel71:menu-bounds

Conversation

@SigmaTel71

Copy link
Copy Markdown
Member

Retrial of #1666 with all review suggestions applied.


The PR includes a test suite for boundary calculations, as well as the fix for the bottom part boundary check. Originally authored by @LuisMend12, I got explicit permission from him to recover the patch and bring it on my own.
I will test the code on my own and edit the opening message with the demo in a few hours.

…o test

Submenus near the bottom of the viewport could render past the bottom
edge because they anchor via `bottom: -50%` off their parent button
and only the top-overflow case was corrected.
Adds the missing bottom-edge check and pulls the shared correction math
into an exported function so it's unit-testable without a DOM,
plus a demo/regression test covering all four edges (Valour-Software#1622).
@SigmaTel71 SigmaTel71 self-assigned this Sep 9, 2026
@SigmaTel71
SigmaTel71 requested a review from a team as a code owner September 9, 2026 11:31
@SigmaTel71
SigmaTel71 changed the base branch from version/0.8.1 to version/0.8.2 September 9, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants