IE is now forced layout if it doesn't have it (such that opacity now works as expecte...
authorJohn Resig <jeresig@gmail.com>
Fri, 16 Jun 2006 02:01:39 +0000 (02:01 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 16 Jun 2006 02:01:39 +0000 (02:01 +0000)
fx/fx.js

index 665f895..559e4f6 100644 (file)
--- 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;