company-box
company-box copied to clipboard
Completion box shrinks when scrolling through completions
I'm using emacs and when I use arrow keys or any other keys to cycle through the completions, the box containing the completions and documentation shrinks.
Before scrolling:
After scrolling a few times:
I tried with no configuration for company box also (the screenshot has configuration) and still the same.
Hi, thanks for creating company-box
! Sadly I'm also experiencing this issue. Actually I had 2 problems, one of these is described in this ticket but I was able to resolve it by setting the x-gtk-resize-child-frames
to 'hide
.
But I still have the shrinking problem when going down to the second page of the completions popup.
First page looks good:
When the contents are narrow, the popup width shrinks:
Is there a way to set a fixed width? Probably to the max length of the items?
I'm using Emacs 27 in Fedora 32 with Gnome Desktop, and Wayland, which I guess it is related with this problem.
Thanks!
When the contents are narrow, the popup width shrinks
@ig-perez I might just have the perfect fix for you. Try the variables controlled by company-mode (not company-box):
;; set them to the same number!
(setq company-tooltip-minimum-width 70)
(setq company-tooltip-maximum-width 70)
Thank you @ianpan870102 I just tried that out and worked perfectly!.