ui/posframe: reduce ivy posframe's jumpiness

This commit is contained in:
Henrik Lissner 2018-03-13 02:53:47 -04:00
parent 6a1b3473e8
commit 6a2d244b4c
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -8,9 +8,11 @@
;;;###autoload
(defun +posframe-poshandler-frame-center-near-bottom (info)
"TODO"
(let ((pos (posframe-poshandler-frame-center info)))
(cons (car pos)
(truncate (* (cdr pos) 1.4)))))
(let* ((posframe (plist-get info :posframe))
(parent-frame (plist-get info :parent-frame)))
(let ((pos (posframe-poshandler-frame-center info)))
(cons (car pos)
(truncate (/ (frame-pixel-height parent-frame) 1.6))))))
;;;###autoload
(defun +posframe|delete-on-escape ()