-
Notifications
You must be signed in to change notification settings - Fork 28
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
Childframe covers company popup #15
Comments
@andreyorst I made a patch and it seems to work for the simplest case. Let's use it for a while and see if other problems occur. |
great! will it be available on melpa or should I install it from git and use some branch to test? |
Melpa is up to date, you can just use that. 😄 |
Thanks, I've tried that, I think it's nice workaround, but not as final solution, since it simply displays eldoc as it would without your package, and I've installed your package to stop that behavior, because it visually moves my buffers when shown or hidden. Another possible workaround would be to display it not at point, like when I wonder I you can borrow some ideas from https://github.com/expez/company-quickhelp to display eldoc at point, but position it correctly accordingly to company. |
Sounds like a good idea. You can try the patch here: https://github.com/casouri/eldoc-box/tree/cover-company-fix However, this would cover company-quickhelp if it is enabled, what should we do in that case? Judging from the source of company-quickhelp, there's no good way to get the geometry of the pos-tip it uses. |
I guess in this way eldoc-box should disable at-point hovering and fallback to posframe at default position.
I'm getting these errors:
|
That's a good idea. Should we just let users do that? I.e., don't use at-point-hover when you also use company-quickhelp.
I don't get these errors. And my patch didn't touch that part of the code. Could you verify if you are at f292d28? |
yes, I guess.
I've just switched branch and copied file contents, since I don't know how to install packages from git with use-package |
That's strange, I cloned the branch fresh and loaded the file, and still don't see the error. |
yes, If I clone and load it works fine. |
Tried your package again with Mate (still waiting when Gnome Shell related issue will be fixed) and I think this issue is fixed and can be closed. Eldoc Box shows up correctly near the company popup and follows cursor as you type. However I have another thoughts about eldoc-box behavior, and I'll describe those in another issue. Thanks! |
Cool |
Ah, finally figured out how to reproduce this issue:
Disabling @casouri can you reopen this issue? |
Thanks for your work. I’ll look into it. |
The line-numbers-mode problem should go away now. |
Since you use Linux, could you tell me whether the y-position is off when you turn on tool-bar-mode? |
Changing code like this: - (let* ((pos (pos (posn-at-point point window)))
+ (let* ((pos (posn-at-point point window))
(x-y (posn-x-y pos))
(window (posn-window pos))
(edges (window-body-pixel-edges window))) makes it work, but position is not correct: As for |
Yet it seems that this positioning problem is shared among other plugins like company-box. So this may be GNOME Shell related. Although old code doesn't seem to have that problem. |
Ok, here's what I know. |
Yes, that's what I'm trying to solve. That happens when I endable |
Tool bar mode doesn't affect position in my case. Both on and off the position is the same for any box |
Found it. |
I see, let me try to figure out how to get the height of the tab-line. |
I think I got it for the most part. |
You can look at this library. It has no problems with resize in Gnome and positioning as far as I can tell.
It seems there's no such problem on my machine. |
From #11
The text was updated successfully, but these errors were encountered: