[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/posframe 0963fb5a57 2/4: posframe-show: Take mode-line-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/posframe 0963fb5a57 2/4: posframe-show: Take mode-line-height into account from minibuffer |
Date: |
Wed, 3 Jul 2024 00:58:41 -0400 (EDT) |
branch: externals/posframe
commit 0963fb5a57c868db7e8f149e38f1aada0acb91c1
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
posframe-show: Take mode-line-height into account from minibuffer
When the current buffer is a minibuffer, use the height of the mode-line
of the window above it. Without this the posframe covers the mode-line
when using, e.g., `posframe-poshandler-frame-bottom-right-corner' and
the `posframe-show' is called while the minibuffer is active.
---
posframe.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/posframe.el b/posframe.el
index 82d8174154..c3961d39b5 100644
--- a/posframe.el
+++ b/posframe.el
@@ -404,7 +404,9 @@ You can use `posframe-delete-all' to delete all posframes."
(font-width (default-font-width))
(font-height (with-current-buffer (window-buffer parent-window)
(posframe--get-font-height position)))
- (mode-line-height (window-mode-line-height))
+ (mode-line-height (window-mode-line-height
+ (and (window-minibuffer-p)
+ (ignore-errors (window-in-direction
'above)))))
(minibuffer-height (window-pixel-height (minibuffer-window)))
(header-line-height (window-header-line-height parent-window))
(tab-line-height (if (functionp 'window-tab-line-height)