style.maxWidth with -moz-calc() is working, it just doesn't appear on Chrome.
This commit is contained in:
parent
94e5c1f935
commit
488cdf4d0a
@ -2419,7 +2419,7 @@
|
|||||||
if (a.parentNode.className !== 'op') {
|
if (a.parentNode.className !== 'op') {
|
||||||
filesize = $('span.filesize', a.parentNode);
|
filesize = $('span.filesize', a.parentNode);
|
||||||
_ref2 = filesize.textContent.match(/(\d+)x/), _ = _ref2[0], max = _ref2[1];
|
_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);
|
return a.appendChild(img);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1812,7 +1812,7 @@ imgExpand =
|
|||||||
unless a.parentNode.className is 'op'
|
unless a.parentNode.className is 'op'
|
||||||
filesize = $ 'span.filesize', a.parentNode
|
filesize = $ 'span.filesize', a.parentNode
|
||||||
[_, max] = filesize.textContent.match /(\d+)x/
|
[_, 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
|
a.appendChild img
|
||||||
|
|
||||||
dialog: ->
|
dialog: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user