Skip to content

Commit 8264b47

Browse files
committed
Use window body height for image scaling instead of frame height
* mime-image.el (mime-image-max-height): Update document. (mime-image-create): Use window-body-height.
1 parent 89b0100 commit 8264b47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mime-image.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ When `mime-image-normalize-xbm' is non-nil, original size is
7979
always used for xbm image."
8080
:group 'mime-view
8181
:type '(choice (const :tag "Use original size" nil)
82-
(float :tag "Ratio to frame height")
82+
(float :tag "Ratio to window body height")
8383
(integer :tag "Specify in pixel")))
8484

8585
(defcustom mime-image-max-width nil
@@ -138,7 +138,7 @@ Furthermore, image scaling for xbm image is disabled."
138138
`(:max-height
139139
,(if (integerp mime-image-max-height)
140140
mime-image-max-height
141-
(floor (* (frame-pixel-height)
141+
(floor (* (window-body-height nil t)
142142
mime-image-max-height)))))
143143
props))
144144
(cond

0 commit comments

Comments
 (0)