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

Fix cascading sub menus bug in embedded components in v2.14.0 #4544

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Sep 3, 2024

The embedded-core ViewMenu (e.g. where there are view level options like Export SVG) ended up diverging slightly from the app-core ViewMenu, where it did not use CascadingMenu, and then a bug introduced during refactoring (removal of Grow component from the @jbrowse/core/ui/Menu) resulted in the cascading effect not working, instead putting all cascading menus on the screen at once

screenshot
image

This fixes it by both
a) Adding the Grow back to @jbrowse/core/ui/Menu
b) Converting the embedded-core ViewMenu to use CascadingMenu, just because there are benefits to the CascadingMenu (it avoids offscreen behavior)

@cmdcolin cmdcolin changed the title Fix cascading sub menus in embedded view menu bug in v2.14.0 Fix cascading sub menus bug in embedded components in v2.14.0 Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant