Make sure setting opacity works on elements that have "no layout" in IE.

This commit is contained in:
Thomas Fuchs 2007-08-27 18:37:49 +00:00
parent 6ed9095df9
commit 6c94af703d
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Make sure setting opacity works on elements that have "no layout" in IE. [Thomas Fuchs]
* Simplify Class.create by establishing a prototype chain when subclassing. Closes #9342. [Ben Newman]
* Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response. Closes #9321. [kampers]

View File

@ -780,6 +780,7 @@ else if (Prototype.Browser.IE) {
return filter.replace(/alpha\([^\)]*\)/gi,'');
}
element = $(element);
if (!element.currentStyle.hasLayout) element.style.zoom = 1;
var filter = element.getStyle('filter'), style = element.style;
if (value == 1 || value === '') {
(filter = stripAlpha(filter)) ?