-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Menu at the end of the screen renders outside #207
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I did something similar for the Don't hesitate to push a PR. |
Thx Frédéric!! Opening a PR right now. |
Can we close this one? |
Yes, sorry. I forgot! |
I'm not sure if this is a bug or not.
Problem
The lumino Menu has an option in its method
open
to force the position of the menu. The problem is that this option is activated by default when the MenuBar calls this method on one of its child menus.See:
lumino/packages/widgets/src/menubar.ts
Line 602 in a105b6f
This makes the menu to render outside the viewport when positioning the menu at the right part of the screen.
![bad-menu](https://user-images.githubusercontent.com/26092748/126659157-7f420742-5b44-4da2-a11c-6bb0ead7f416.png)
See the top-right menu on the following image:
After removing the option force:
![solved](https://user-images.githubusercontent.com/26092748/126659165-1048ec64-abdd-49f1-815b-e3e31085ffcd.png)
Proposed Solution
Can we add an option on the constructor of the
MenuBar
to configure this when creating a new menubar?Here:
https://github.com/hbcarlos/lumino/blob/a105b6f62d7e630ec2bc0095507fc7547ba29629/packages/widgets/src/menubar.ts#L710
Additional context
The text was updated successfully, but these errors were encountered: