Skip to content

improvement for getting correct submenu's height (when menu's height doesn't equal to submenu's) #51

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hfknight
Copy link

thanks for bringing us the great plugin! I've used it in my project and it works as expected. However, I found it had some issue for getting correct submenu's height when it doesn't equal to menu's (submenu is taller than menu for instance). In that case, the calculation of the mouse path triangle was not accurate。

I added an option to set submenu's max height so it gets the correct
height, rather than always using menu's height;
added leaveMenuTimeoutId, for not deactivating submenu if mouse is
moving to submenu but has exited menu.

added an option to set submenu's max height so it gets the correct
height, rather than always using menu's height (in some cases, menu's
height is less than submenu's);
added leaveMenuTimeoutId, for not deactivating submenu if mouse is
moving to submenu but has exited menu.
@sastrysk
Copy link

can u send us the code for height

@hfknight
Copy link
Author

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