popper icon indicating copy to clipboard operation
popper copied to clipboard

Smaller popper popup height first time

Open anildigital opened this issue 3 years ago • 5 comments

When I run vterm, I notice it opens a small popup, but height is less. But when buffer has more text and I toggle popper-toggle-latest a different height is applied. I expect popper popup window to have consistent height.

When I open normally image

When I run something in vterm and it logs more text into the buffer and I toggle popper-toggle-latest, it shows a different height

image

What I expect is the height to stay consistent as in second screenshot, the height in first screenshot is too small to work into.

anildigital avatar Apr 05 '22 06:04 anildigital

This should not be happening. Can you add your Popper config here?

karthink avatar Apr 06 '22 03:04 karthink

@karthink here it is

(use-package
  popper
  :ensure t
  :bind (("C-`"   . popper-toggle-latest)
         ("M-`"   . popper-cycle)
         ("C-M-`" . popper-toggle-type))
  :hook ((popper-open-popup-hook . centaur-tabs-local-mode))
  :init
  (setq popper-reference-buffers '("eshell*"
                                   "shell*"
                                   "vterm"
                                   "*SQL"
                                   "*exunit-compilation*"
                                   help-mode
                                   compilation-mode))
  (popper-mode +1)
  (popper-echo-mode +1))

anildigital avatar Apr 06 '22 04:04 anildigital

Same here with a similar configuration. Whatever the frame size, the compilation-mode popup started with recompile is always 5 lines high. If I toggle with popper-toggle-latest, it shows it in its correct size.

1player avatar Apr 28 '22 10:04 1player

Try add (setq popper-window-height 15) for consistent height of popper

NikhilRajPandey avatar Jul 09 '22 16:07 NikhilRajPandey

I haven't had the time to track down this bug. For now, I second @NikhilRajPandey's workaround. You can also set popper-window-height to a fraction of the frame height. For example:

(setq popper-window-height 0.33)

will fix popup height at 33% of the frame size.

karthink avatar Jul 09 '22 20:07 karthink