Subject: bug#38181: Actual height of mode-line not taken into account

From: martin rudalics <[email-masked]>
Date: Wed, 13 Nov 2019 09:03:56 +0100

> (setq-default
 >   mode-line-format
 >   (cons (propertize " " 'display
 >                     (create-image "/* XPM */ static char * image[] = {
 > \"3 60 1 1\",
 > \"0 c #00aaff\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\",
 > \"000\",\n\"000\",\n\"000\",\n\"000\",\n\"000\"
 > };" 'xpm t :ascent 'center))
 >         mode-line-format))

When I evaluate that specification, the scroll bars are screwed up for
all windows and remain so for all unselected windows.  So this problem
is not pertinent to 'fit-window-to-buffer' only.

martin