style.maxWidth with -moz-calc() is working, it just doesn't appear on Chrome.

This commit is contained in:
Nicolas Stepien 2011-06-13 00:17:34 +02:00
parent 94e5c1f935
commit 488cdf4d0a
2 changed files with 2 additions and 2 deletions

View File

@ -2419,7 +2419,7 @@
if (a.parentNode.className !== 'op') {
filesize = $('span.filesize', a.parentNode);
_ref2 = filesize.textContent.match(/(\d+)x/), _ = _ref2[0], max = _ref2[1];
img.setAttribute('style', "max-width: -moz-calc(" + max + "px);");
img.style.maxWidth = "-moz-calc(" + max + "px)";
}
return a.appendChild(img);
},

View File

@ -1812,7 +1812,7 @@ imgExpand =
unless a.parentNode.className is 'op'
filesize = $ 'span.filesize', a.parentNode
[_, max] = filesize.textContent.match /(\d+)x/
img.setAttribute 'style', "max-width: -moz-calc(#{max}px);"
img.style.maxWidth = "-moz-calc(#{max}px)"
a.appendChild img
dialog: ->