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

Overflow / visibility issue if contextmenu longer than screen height #775

Open
klues opened this issue Jan 27, 2025 · 0 comments
Open

Overflow / visibility issue if contextmenu longer than screen height #775

klues opened this issue Jan 27, 2025 · 0 comments

Comments

@klues
Copy link

klues commented Jan 27, 2025

If the context menu is too big for current screen size, these CSS values are added: overflow-x: hidden and overflow-y: auto, see:
https://github.com/swisnl/jQuery-contextMenu/blob/master/src/jquery.contextMenu.js#L1589

However, this causes that open sub-menus on the left/right of the current main menu aren't visible anymore. I've tried to change it to overflow-x: visible, but it still doesn't work, since it seems that overflow-x: visible is not possible in combination with overflow-y: auto.

klues added a commit to asterics/AsTeRICS-Grid that referenced this issue Jan 27, 2025
…sn't fit screen. Still not optimal, since this solution doesn't allow scrolling in too big context menus. but "overflow-x":"hidden","overflow-y":"auto" causes submenus to be not visible at all, if main menu is too big for screen, see swisnl/jQuery-contextMenu#775
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

No branches or pull requests

1 participant