From 4c572bdf56a95c6462027d18d80e6ed6cebbfd3e Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 16 Jun 2006 02:01:39 +0000 Subject: [PATCH] IE is now forced layout if it doesn't have it (such that opacity now works as expected). (Ticket #4). --- fx/fx.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fx/fx.js b/fx/fx.js index 665f895..559e4f6 100644 --- a/fx/fx.js +++ b/fx/fx.js @@ -211,6 +211,11 @@ $.fx = function(el,op,ty){ } }; + // IE has trouble with opacity if it doesn't have layout + if ( $.browser == "msie" && !z.el.currentStyle.hasLayout ) { + y.zoom = 1; + } + // Remember the overflow of the element z.oldOverflow = y.overflow; -- 1.7.10.4