Skip to content

breaking: make menu screen size aware in less-buttons#448

Open
trigg wants to merge 6 commits into
less-buttonsfrom
breaking-menu-size
Open

breaking: make menu screen size aware in less-buttons#448
trigg wants to merge 6 commits into
less-buttonsfrom
breaking-menu-size

Conversation

@trigg
Copy link
Copy Markdown
Collaborator

@trigg trigg commented May 25, 2026

A fix for the fix for the fix...

Menu is a special-case for popups because allowing automatic sizing ends up with unacceptable sizes every time. The first fix was the force the minimum size of each section.

This ran into another problem where if (due to resolution changes, scale changes, or device hotplug) the menu is now bigger than the remaining space, it simply does not show up.

In less-buttons we fix all other popups by putting them inside a scrolled view if there is a chance they could overflow. This in turn causes menu to force a minimum size and gain a scroll bar, which is hideous.

So this (partly written) fix will allow the menu to work around this too. If it detects it is being shown in a scrolled view which has more internal space than physical it will resize down to match, hiding the scrollbar but ignoring the over-large size the user has requested.

This will not be a main feature of less-buttons for every widget on the panel simply because all the others have their size set ONLY on contents, not artificially larger. So a scrolled area will only happen when it's that or no popup at all.

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