From 6c94af703d1db66b9310c8736f77007ad68c2e0d Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Mon, 27 Aug 2007 18:37:49 +0000 Subject: [PATCH] Make sure setting opacity works on elements that have "no layout" in IE. --- CHANGELOG | 2 ++ src/dom.js | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index d70cd78..bba031d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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] diff --git a/src/dom.js b/src/dom.js index f99c5d2..b17e1ee 100644 --- a/src/dom.js +++ b/src/dom.js @@ -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)) ?