myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r500307 - /myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Date Fri, 26 Jan 2007 19:02:36 GMT
Author: lofwyr
Date: Fri Jan 26 11:02:35 2007
New Revision: 500307

URL: http://svn.apache.org/viewvc?view=rev&rev=500307
Log:
fixing alpha blending of PNG for IE 6, TOBAGO-102

Modified:
    myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?view=diff&rev=500307&r1=500306&r2=500307
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
(original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Fri Jan 26 11:02:35 2007
@@ -265,9 +265,13 @@
       var img = document.createElement("IMG");
       img.style.width = overlay.clientWidth;
       img.style.height = overlay.clientHeight;
-//      todo: implement ie 6 workaround for alpha images
-      if (!Tobago.fixImage) { // is IE
+      if (!Tobago.fixImage) { // is not IE
         img.src = Tobago.OVERLAY_BACKGROUND;
+      } else {
+        // todo: not needed for IE 7
+        img.src = Tobago.pngFixBlankImage;
+        img.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"
+
+                                       Tobago.OVERLAY_BACKGROUND + "',sizingMethod='scale')";
       }
       overlay.appendChild(img);
     }



Mime
View raw message