diff --git a/4chan_x.js b/4chan_x.js
index 7e5c70377..f732486f6 100644
--- a/4chan_x.js
+++ b/4chan_x.js
@@ -2172,6 +2172,9 @@
case 'fit width':
klass = 'fitwidth';
break;
+ case 'fit height':
+ klass = 'fitheight';
+ break;
case 'fit screen':
klass = 'fitwidth fitheight';
}
@@ -2204,7 +2207,7 @@
var controls, delform, imageType, option, select, _i, _len, _ref2;
controls = $.el('div', {
id: 'imgControls',
- innerHTML: " "
+ innerHTML: " "
});
imageType = $.getValue('imageType', 'full');
_ref2 = $$('option', controls);
diff --git a/script.coffee b/script.coffee
index 6f161cbd7..fb9930f76 100644
--- a/script.coffee
+++ b/script.coffee
@@ -1667,6 +1667,8 @@ imgExpand =
klass = ''
when 'fit width'
klass = 'fitwidth'
+ when 'fit height'
+ klass = 'fitheight'
when 'fit screen'
klass = 'fitwidth fitheight'
d.body.className = klass
@@ -1693,7 +1695,7 @@ imgExpand =
controls = $.el 'div',
id: 'imgControls'
innerHTML:
- "
+ "
"
imageType = $.getValue 'imageType', 'full'
for option in $$ 'option', controls