We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b0100 commit 8264b47Copy full SHA for 8264b47
mime-image.el
@@ -79,7 +79,7 @@ When `mime-image-normalize-xbm' is non-nil, original size is
79
always used for xbm image."
80
:group 'mime-view
81
:type '(choice (const :tag "Use original size" nil)
82
- (float :tag "Ratio to frame height")
+ (float :tag "Ratio to window body height")
83
(integer :tag "Specify in pixel")))
84
85
(defcustom mime-image-max-width nil
@@ -138,7 +138,7 @@ Furthermore, image scaling for xbm image is disabled."
138
`(:max-height
139
,(if (integerp mime-image-max-height)
140
mime-image-max-height
141
- (floor (* (frame-pixel-height)
+ (floor (* (window-body-height nil t)
142
mime-image-max-height)))))
143
props))
144
(cond
0 commit comments