fit height

This commit is contained in:
James Campos 2011-05-17 01:59:41 -07:00
parent 07c47775b3
commit d50b7034b8
2 changed files with 7 additions and 2 deletions

View File

@ -2172,6 +2172,9 @@
case 'fit width': case 'fit width':
klass = 'fitwidth'; klass = 'fitwidth';
break; break;
case 'fit height':
klass = 'fitheight';
break;
case 'fit screen': case 'fit screen':
klass = 'fitwidth fitheight'; klass = 'fitwidth fitheight';
} }
@ -2204,7 +2207,7 @@
var controls, delform, imageType, option, select, _i, _len, _ref2; var controls, delform, imageType, option, select, _i, _len, _ref2;
controls = $.el('div', { controls = $.el('div', {
id: 'imgControls', id: 'imgControls',
innerHTML: "<select id=imageType name=imageType><option>full</option><option>fit width</option><option>fit screen</option></select> <label>Expand Images<input type=checkbox id=imageExpand></label>" innerHTML: "<select id=imageType name=imageType><option>full</option><option>fit width</option><option>fit height</option><option>fit screen</option></select> <label>Expand Images<input type=checkbox id=imageExpand></label>"
}); });
imageType = $.getValue('imageType', 'full'); imageType = $.getValue('imageType', 'full');
_ref2 = $$('option', controls); _ref2 = $$('option', controls);

View File

@ -1667,6 +1667,8 @@ imgExpand =
klass = '' klass = ''
when 'fit width' when 'fit width'
klass = 'fitwidth' klass = 'fitwidth'
when 'fit height'
klass = 'fitheight'
when 'fit screen' when 'fit screen'
klass = 'fitwidth fitheight' klass = 'fitwidth fitheight'
d.body.className = klass d.body.className = klass
@ -1693,7 +1695,7 @@ imgExpand =
controls = $.el 'div', controls = $.el 'div',
id: 'imgControls' id: 'imgControls'
innerHTML: innerHTML:
"<select id=imageType name=imageType><option>full</option><option>fit width</option><option>fit screen</option></select> "<select id=imageType name=imageType><option>full</option><option>fit width</option><option>fit height</option><option>fit screen</option></select>
<label>Expand Images<input type=checkbox id=imageExpand></label>" <label>Expand Images<input type=checkbox id=imageExpand></label>"
imageType = $.getValue 'imageType', 'full' imageType = $.getValue 'imageType', 'full'
for option in $$ 'option', controls for option in $$ 'option', controls