I'm still not sure if this happens somewhere else, but in an Org-mode file when Company shows the completion list, depending on the text behind it, it will move the candidates some spaces to the right or to the left.
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related or that one is blocking others.
Learn more.
Thank you @iris-garcia for reporting this! It seems to me that it is related to what looks like a different height between the headings and the main text. Perhaps you are using the "scalable headings" option?
If that is the case, then I suggest we prepare a reproducible recipe on emacs -Q and report it to the Company developers. What do you think?
Just prepared a bug report with a reproducible recipe. What do you think?
[SUBJECT] Bug: Company pop-up does not align over faces with different :height
Please see attached screenshot for the problem.
In an emacs -Q session configured to run company-mode, follow these
steps to reproduce the issue:
C-x C-f /tmp/test-company.org
Insert some common text:
Testing phenom* That is a test* This is a testSome words: phenomenal, phenomenality, phenomenology, phenomenon
Try to complete "phenom" on the first line. The company pop-up
displays correctly.
Now change the height of the headings by evaluating this:
(set-face-attribute'org-level-1nil:height2.0)
Try again to complete "phenom". You should notice the misalignment of
the pop-ups. It only occurs over elements that have a :height other
than the default (i.e. also for smaller values than 1.0).
Ok, just tried this frontend and seems to work good.
Maybe it is a good idea to include this finding somewhere in the documentation, I bet many other users will encounter this issue.