diff --git a/lib/Rico/Corner.js b/lib/Rico/Corner.js index 71289f115c..b3a2970a13 100644 --- a/lib/Rico/Corner.js +++ b/lib/Rico/Corner.js @@ -61,15 +61,15 @@ Rico.Corner = { * * See changeColor (above) for algorithm explanation * - * @param {DOM} theDiv - A child of the outer
that was + * @param {DOM} theDiv A child of the outer
that was * supplied to the `round` method. * - * @param {int} newOpacity - The new opacity to use (1-10). + * @param {int} newOpacity The new opacity to use (0-1). */ changeOpacity: function(theDiv, newOpacity) { - var mozillaOpacity = newOpacity / 10 - var ieOpacity = 'alpha(opacity=' + newOpacity * 10 + ')'; + var mozillaOpacity = newOpacity; + var ieOpacity = 'alpha(opacity=' + newOpacity * 100 + ')'; theDiv.style.opacity = mozillaOpacity; theDiv.style.filter = ieOpacity;