]> source.dussan.org Git - gwtquery.git/commitdiff
typo
authorManolo Carrasco <manolo@apache.org>
Wed, 26 Oct 2011 16:34:27 +0000 (16:34 +0000)
committerManolo Carrasco <manolo@apache.org>
Wed, 26 Oct 2011 16:34:27 +0000 (16:34 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java

index da318b553d41ee517f37ee40b7b533f23611a5b9..a2aaf78862d525cc85c259998dd56b1239fbb09e 100644 (file)
@@ -164,7 +164,7 @@ public class DocumentStyleImpl {
     if (val == null || val.trim().length() == 0) {
       removeStyleProperty(e, prop);
     } else {
-      if (val.matches("-?[\\d\\.]+") && !cssNumber.test(val)) {
+      if (val.matches("-?[\\d\\.]+") && !cssNumber.test(prop)) {
         val += "px";
       }
       e.getStyle().setProperty(prop, val);