sebastiencs / company-box

A company front-end with icons
564 stars 64 forks source link

Completion box shrinks when scrolling through completions #70

Open vn-ki opened 5 years ago

vn-ki commented 5 years ago

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: image

After scrolling a few times: image

I tried with no configuration for company box also (the screenshot has configuration) and still the same.

ig-perez commented 3 years ago

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: image

When the contents are narrow, the popup width shrinks: image

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!

ianyepan commented 3 years ago

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)
ig-perez commented 3 years ago

Thank you @ianpan870102 I just tried that out and worked perfectly!.