branch: externals/posframe
commit d75dc1547a6a1cc2b385c736880eee77d7981aec
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
Fix: Frame not tall enough if line-spacing > 0 #48
---
posframe.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/posframe.el b/posframe.el
index db35ce6..561ba3f 100644
--- a/posframe.el
+++ b/posframe.el
@@ -606,7 +606,8 @@ WIDTH and MIN-WIDTH."
(if (and width height)
(unless (equal posframe--last-posframe-size
(cons width height))
- (set-frame-size posframe width height)
+ (fit-frame-to-buffer
+ posframe height min-height width min-width)
(setq-local posframe--last-posframe-size
(cons width height)))
(fit-frame-to-buffer