Improved image rendering: fix max-height
authorAlex Schroeder <alex@gnu.org>
Tue, 3 Aug 2021 07:21:24 +0000 (09:21 +0200)
committerAlex Schroeder <alex@gnu.org>
Tue, 3 Aug 2021 07:21:24 +0000 (09:21 +0200)
commit7e6b71d0cf4ccf5d94a95c58fc35ebf2fd09920b
treee226d4f287778eec613a797011fc05d455f52115
parent7a7fc41273acf74bf2982a9607cf066c15f875d7
Improved image rendering: fix max-height

window-pixel-height's return value includes the mode line and header
line and the bottom divider, if any. In order for the image to fit
exactly, we therefore subtract window-header-line-height,
window-mode-line-height window, window-scroll-bar-height window, and
window-bottom-divider-width.
elpher.el