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

add windowPosition #112

Merged
merged 1 commit into from
Aug 3, 2023
Merged

add windowPosition #112

merged 1 commit into from
Aug 3, 2023

Conversation

DanielHudson
Copy link
Contributor

@DanielHudson DanielHudson commented Aug 2, 2023

Adds support for passing positioner 'position' strings such as trayLeft and trayBottomCenter to menubar via the windowPosition key.

By adding the HasPositioner trait to MenuBar you may now set the tray browser window positioning, for eg:

MenuBar::create()->center();
MenuBar::create()->trayRight();

etc.

This is also dependent on NativePHP/electron-plugin#15

@mpociot mpociot merged commit 6904745 into NativePHP:main Aug 3, 2023
@mpociot
Copy link
Member

mpociot commented Aug 3, 2023

Thank you!

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