Skip to content

Suggest widget: When widget is too tall, ensure larger of above and below space is used. #260583

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andr8928
Copy link

@andr8928 andr8928 commented Aug 8, 2025

Issue addressed:
#152324

Description:
Currently, when the suggest widget has enough space below, everything is fine:
monaco-test-suggest-OK

When the suggest widget is larger than the area below the current line, the current code always calculates the height and position of the widget using the space above the line (even if the space below is larger):

monaco-test-suggest-BUG

With this change, if the suggest box is larger than the space below, it will now choose the largest of "above" and "below" to use in its calculations (unless force-above is enabled):

monaco-test-suggest-FIX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants