-
Notifications
You must be signed in to change notification settings - Fork 1.3k
refactor(context-menu): scroll into view if needed #10545
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
Conversation
Thanks! |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thanks for contributing, @aboqasem! 🍊 Ideally, we would detect when there isn't enough space in the viewport and position the dropdown above the button when needed, without requiring any scrolling. Do you think this could be easy to change here? Otherwise, we could leave this as is for now as it seems like an improvement and open a follow-up issue to properly resolve this. ❓ You'll also need to sign a Contributor License Agreement (CLA)[1] once before merging your first contribution. Looping in @meysholdt to reach out about the CLA. 🏓 |
Thank you for your review! The issue states that scrolling is a possible solution 😅. Regarding the solution you've mentioned, how could the size of the menu be determined without viewing it? Is it by having fixed numbers representing menu item heights on each screen breakpoint and then using it with the number of menu items to determine whether there is available space or not? Or is there something else? For the CLA, I think I must commit with my email that signed the CLA, not the Github |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
92e7162
to
fc06bcd
Compare
hi @aboqasem and thank you for your contributions! Since I can't find a CLA of you on file, can you please sign one as requested here? thank you! |
Thx for signing the CLA! |
/werft run 👍 started the job as gitpod-build-improve-dropdown-visibilty-fork.0 |
Hi @aboqasem! Many thanks for implementing this fix. 💯 This looks good to me, but I'd love to test it before approving. In order to test it, I'd need a full build of this Pull Request, however I notice that the build currently fails -- the failure looks unrelated to your changes, but could be caused by your PR being based on an old commit. Could you please go through the following steps in order to update this PR?
This should fix the build and allow me to review and approve your PR. 🙂 |
fc06bcd
to
a6c8ede
Compare
Hi @jankeromnes! Thank you for the review. I have updated the PR and looking forward to it being merged! |
@jankeromnes Would you like to review it again? Also happy to take it over 🙏🏽 |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
Scroll context menus into view when needed.
Related Issue(s)
Fixes #9326
How to test
scrollIntoViewIfNeeded.mov
Release Notes
Documentation