-
Notifications
You must be signed in to change notification settings - Fork 847
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
Left Click Menu Is Being Placed Above Top of screen for menus with many items #2704
Comments
Task https://virtocommerce.atlassian.net/browse/VP-8454 has been created |
@wsimon Could you attach any screenshots or gif? |
Added PR: #2713 |
Thank you for feedback |
@wsimon please check VirtoCommerce/vc-module-core#219 |
@OlegoO That works for us. Thanks. |
We are planning to release it in Monday |
Fixed in https://github.com/VirtoCommerce/vc-module-core/releases/tag/3.404.0 and delivered in two latest stable releases: |
Hi @OlegoO . We tried updating to the latest release and we are still seeing the original issue even though the menu has a scrollbar. We click this select attribute link and the menu opens but the top of it is off screen and now it doesn't open next to the link where we click but further up on the screen. I wonder if this javascript is going to have to change, because this is where it calculates what to set the top property of the menu. At the very least, it should probably do a Math.max(0, top) but it might need more to take into account that the height of the menu is no longer greater than 70% of the viewport height so that it is properly aligned with the element that opened it: |
Hi, @wsimon !
|
@Dan-BV Thanks for your help.
|
Describe the bug
We have a long menu that gets placed above the top of the screen so that the items at the top are not clickable. This is the menu that I am referring to:
https://github.com/VirtoCommerce/vc-platform/blob/dev/src/VirtoCommerce.Platform.Web/wwwroot/js/common/directives/left-click-menu.js
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the menu to become scrollable if it doesn't fit and not go off screen
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: