branch: externals/ivy-posframe
commit 1297ebc13fea6a3cb2696c01c34fb6d18e85356b
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
Fix focus can go out of frame with multi line collections #31
---
ivy-posframe.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index 8858e10..aa677d0 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -217,10 +217,10 @@ This variable is useful for `ivy-posframe-read-action' .")
:poshandler poshandler
: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 (round (* (frame-width) 0.62)))
- :min-height (or ivy-posframe-min-height 10)
- :min-width (or ivy-posframe-min-width 50)
+ :height ivy-posframe-height
+ :width ivy-posframe-width
+ :min-height (or ivy-posframe-min-height (+ ivy-height 1))
+ :min-width (or ivy-posframe-min-width (round (* (frame-width) 0.62)))
:internal-border-width ivy-posframe-border-width
:internal-border-color (face-attribute 'ivy-posframe-border :background)
:override-parameters ivy-posframe-parameters))))