-
Notifications
You must be signed in to change notification settings - Fork 27
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 bar #929
Menu bar #929
Conversation
Great start, thanks! I haven't reviewed the code, but playing with it I notice two things:
|
Ok, trying again, and comparing with google docs: the behavior is fine, except the menu title should also highlight when hovering over. |
Ok. I copied the behavior of top bar in macos. |
I did force push to rebase. |
This looks good, but I would like the The same goes for sub-menu: a sub menu should be populated only right before it is displayed. |
(Also, please rebase again, also for sub-menu, although I'm a bit confused how that works, since the latter is a PR on menu-bar.) |
44f0814
to
5cab529
Compare
Not ready for review yet. |
…r in onmousedown event instead of instanceof check
For now, let's do three links under "Help":
|
Thanks for the refinements! Further feedback:
|
Or would they be better under "View"? |
I noticed one little bug, |
Can you fix it? |
Like I commented later, I think they actually should go under "View". |
`; | ||
|
||
constructor(menuItems, position, positionContainer) { | ||
constructor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we simplify the constructor? I'm thinking all but the first arguments should go into an options object:
constructor(menuItems, options) {
Since many of these are optional this should simplify things. Also, it makes it easier to add more if we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge this! Looking good to me.
Fixes #1027