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
[Show-Hints] Hint popup exceeds the viewport's height #6979
Conversation
The current implementation does not taking care of the top-position of the popup window while calculating the final height of it.
That |
No, it does not shrink it then, instead it will set the But therefore, the actual |
Right. But the branch you're modifying here is specifically for the case where the pop-up is itself higher than the screen, so just adding this without adjusting the rest of the logic is not a good idea. But also, in your screenshots, the current behavior actually seems preferable — with the change, you can no longer see what you are typing because the pop-up covers it. |
Adapted your suggestion, and only resized the hint's popup window. You are right, it looks much better, and keeps user-experience high ;) |
That only covers the case where the pop-up is below the cursor ... and the existing logic seems seriously dodgy as well. Does attached patch work for you? |
The current version was working fine in case of showing it above. Nevertheless your implementation works great, and is using the full horizontal space, if needed, as well. |
I will close this pull request, as it is overhauled now. |
The current implementation does not taking care of the top-position of the popup window while calculating the final height of it.