Skip to content

Commit 242dfe8

Browse files
andreyorstbrotzeit
authored andcommitted
Take window tab-line height into account
Fix #423
1 parent 134d9b7 commit 242dfe8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lsp-ui-doc.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,10 @@ FRAME just below the symbol at point."
420420
(- x (- (+ frame-relative-symbol-x width)
421421
(frame-outer-width))))
422422
x))
423-
(frame-y (or (and (<= height frame-relative-symbol-y)
424-
(- y height))
425-
(+ y char-height))))
423+
(frame-y (+ (or (and (<= height frame-relative-symbol-y)
424+
(- y height))
425+
(+ y char-height))
426+
(if (fboundp 'window-tab-line-height) (window-tab-line-height) 0))))
426427
(set-frame-position frame (+ start-x frame-x) (+ start-y frame-y))))
427428

428429
(defun lsp-ui-doc--move-frame (frame)

0 commit comments

Comments
 (0)