summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2021-06-10 18:59:12 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2021-06-10 18:59:12 +0200
commitc67dbafdf7ab3efd61a34df4ab4bdee93723a852 (patch)
tree45335ef5d4da03448d3a7ad01921a8bec8286688
parent929547292b273972cded50bb0bc4858489800749 (diff)
Take window-tab-line-height into account (Fix #25)
-rw-r--r--corfu.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index 84aa10d..8528962 100644
--- a/corfu.el
+++ b/corfu.el
@@ -222,7 +222,7 @@ Set to nil in order to disable confirmation."
(x (max 0 (min (+ (car edge) x
(- (alist-get 'child-frame-border-width corfu--frame-parameters)))
(- (frame-pixel-width) width))))
- (yb (+ (cadr edge) y lh))
+ (yb (+ (cadr edge) (window-tab-line-height) y lh))
(y (if (> (+ yb height lh lh) (frame-pixel-height))
(- yb height lh 1)
yb))