changeset 32570:85cf11e21bd1

(resize-temp-buffer-window): Add hack to avoid last line being obscured by whizzy mode-lines on graphical displays.
author Miles Bader <miles@gnu.org>
date Tue, 17 Oct 2000 11:04:31 +0000
parents 7075cbfa4c73
children f98ea2dfa208
files lisp/help.el
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Tue Oct 17 09:13:06 2000 +0000
+++ b/lisp/help.el	Tue Oct 17 11:04:31 2000 +0000
@@ -1470,6 +1470,11 @@
            (min-height (1- window-min-height))
            (text-height (count-screen-lines))
            (new-height (max (min text-height max-height) min-height)))
+      (when (display-graphic-p)
+	;; This egregious hack is because mode-lines on graphics
+	;; displays often use faces that make them more than one `line'
+	;; high, and so obscure the last line of the window proper.
+	(setq win-height (1- win-height)))
       (enlarge-window (- new-height win-height)))))
 
 ;; `help-manyarg-func-alist' is defined primitively (in doc.c).