8000 fix MXContextMenu y-offset by walesch-yan · Pull Request #1637 · mxcube/mxcubeweb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix MXContextMenu y-offset #1637

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

Merged
merged 1 commit into from
May 6, 2025
Merged

Conversation

walesch-yan
Copy link
Collaborator

The refactoring of MXContextMenu in #1626 introduced an offset in y direction, so that the user would not have to scroll down if part of the pop up menu would be outside the viewable window. However, there was an issue, that it was not correctly calculated if the user already scrolled down before. It also introduced the problem that since the menu might pop up to the top, that when you have a really long list of items in the menu, they might overflow to the top instead of the bottom.

Hence, I reverted this functionality, so that the y-coordinate of the context menu will be approx. where the user clicked

@walesch-yan walesch-yan force-pushed the yw-fix-MXContextMenu branch from b8c9f43 to f5910ea Compare May 5, 2025 12:43
@marcus-oscarsson marcus-oscarsson merged commit b3869fa into develop May 6, 2025
18 checks passed
@marcus-oscarsson marcus-oscarsson deleted the yw-fix-MXContextMenu branch May 6, 2025 07:26
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.

3 participants
0