branch: externals/ivy-posframe
commit 9e5c4a9d446f565834118a23b46b538a26c039bf
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
Fix: Should the default width be the frame instead of the window? #22
---
ivy-posframe.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 2fe050d..319ce6b 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -208,7 +208,7 @@ This variable is useful for `ivy-posframe-read-action' .")
:background-color (face-attribute 'ivy-posframe :background)
:foreground-color (face-attribute 'ivy-posframe :foreground)
:height (or ivy-posframe-height ivy-height)
- :width (or ivy-posframe-width (/ (window-width) 2))
+ :width (or ivy-posframe-width (/ (frame-width) 2))
:min-height (or ivy-posframe-min-height 10)
:min-width (or ivy-posframe-min-width 50)
:internal-border-width ivy-posframe-border-width