Skip to content

fix min/max Menubar-Dimensions#99

Open
WINBIGFOX wants to merge 4 commits intoNativePHP:mainfrom
WINBIGFOX:fix-menubar-min-max-dimensions
Open

fix min/max Menubar-Dimensions#99
WINBIGFOX wants to merge 4 commits intoNativePHP:mainfrom
WINBIGFOX:fix-menubar-min-max-dimensions

Conversation

@WINBIGFOX
Copy link
Contributor

MenuBar exposes the standard dimension API via HasDimensions, but its Electron bridge currently ignores minWidth, minHeight, maxWidth, and maxHeight when creating the underlying BrowserWindow.
This becomes a problem for tray/menubar apps: the menubar popup can gradually shrink after repeated reopenings, especially in multi-display setups with different resolutions/scaling, and the app has no way to enforce a minimum usable size even though the PHP API suggests that it can.
This change forwards the min/max dimension values through the electron-plugin menubar create flow so applications can reliably constrain the popup window size.

560772883-e2beaf94-36ab-4a33-860a-92776986011f

WINBIGFOX and others added 2 commits March 15, 2026 14:39
@simonhamp simonhamp requested a review from a team March 16, 2026 15:24
Copy link
Member

@SRWieZ SRWieZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone told me at Larcon that it needed that too. I think it's a good idea. Thanks @WINBIGFOX

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.

4 participants