summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-11-19 20:42:47 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-11-19 20:43:18 +0100
commitbafd81374286c6fead82b277589ad4e2002fdc85 (patch)
treefcdc13b28a957981764b64eb93f45074d9292532
parent8e6b5fd2ed06b12eb9218a0ae919be7ba5d7758b (diff)
corfu-popupinfo: Compute popup size from smaller area
-rw-r--r--extensions/corfu-popupinfo.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/corfu-popupinfo.el b/extensions/corfu-popupinfo.el
index c426040..879ab79 100644
--- a/extensions/corfu-popupinfo.el
+++ b/extensions/corfu-popupinfo.el
@@ -205,7 +205,7 @@ all values are in pixels relative to the origin. See
((window-buffer) (current-buffer))
(size (window-text-pixel-size
nil (point-min) (point-max)
- (* 2 max-width) (* 2 max-height))))
+ max-width max-height)))
(cons (min (+ margin (car size)) max-width)
(min (cdr size) max-height))))
(cons max-width max-height))))