ui/posframe: reduce ivy posframe's jumpiness
This commit is contained in:
parent
6a1b3473e8
commit
6a2d244b4c
1 changed files with 5 additions and 3 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue