Skip to content
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

enable parentless frame for tooltip #209

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

Conversation

mikeandmore
Copy link

Currently, the document tooltip frame is a child frame, which is constrained to the main Emacs window. If the content width is too wide and company-box-doc-no-wrap is nil, then company-box will wrap the child frame. This makes the child frame extremely narrow when there is not enough space left inside the Emacs window. However, with company-box-doc-no-wrap being t, the frame will be cut off in half, hiding half of the content even when there is plenty of space outside of the Emacs window.

This PR creates the document tooltip as a parentless frame (parent-frame . nil) when company-box-doc-no-wrap is t. When the content is too wide for the Emacs window, the frame will popup outside the Emacs window.

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.

1 participant