You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/05/20 09:51:38 UTC

svn commit: r946557 - /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java

Author: lofwyr
Date: Thu May 20 07:51:38 2010
New Revision: 946557

URL: http://svn.apache.org/viewvc?rev=946557&view=rev
Log:
TOBAGO-884: Value of z-index in style attribute of an html element will be encoded incorrectly

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java?rev=946557&r1=946556&r2=946557&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/renderkit/html/HtmlStyleMap.java Thu May 20 07:51:38 2010
@@ -64,7 +64,7 @@ public class HtmlStyleMap extends HashMa
       buf.append(style.getKey());
       buf.append(":");
       buf.append(style.getValue());
-      if (style.getValue() instanceof Integer) {
+      if (style.getValue() instanceof Integer && !"z-index".equals(style.getKey())) {
         buf.append("px; ");
       } else {
         buf.append("; ");