diff options
author | Manolo Carrasco <manolo@apache.org> | 2011-10-16 06:50:13 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2011-10-16 06:50:13 +0000 |
commit | c9692f483257ce5640823855e5a84fa8b6749a57 (patch) | |
tree | fcdad4bff8a78da100966e5f6b9fcc4025d37ca5 | |
parent | ce4ce5b72fdab2853df7dc31105daeb3cbbb5aae (diff) | |
download | gwtquery-c9692f483257ce5640823855e5a84fa8b6749a57.tar.gz gwtquery-c9692f483257ce5640823855e5a84fa8b6749a57.zip |
visibility should not be changed, and getComputedStyle could fail. Both cause problems with svg nodes
2 files changed, 4 insertions, 3 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java index 39ba47e6..cd716fe9 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java @@ -166,8 +166,10 @@ public class DocumentStyleImpl { protected native String getComputedStyle(Element elem, String hyphenName, String camelName, String pseudo) /*-{ - var cStyle = $doc.defaultView.getComputedStyle(elem, pseudo); - return cStyle && cStyle.getPropertyValue ? cStyle.getPropertyValue(hyphenName) : null; + try { + var cStyle = $doc.defaultView.getComputedStyle(elem, pseudo); + return cStyle && cStyle.getPropertyValue ? cStyle.getPropertyValue(hyphenName) : null; + } catch(e) {return null;} }-*/; protected static final JsNamedArray<String> elemdisplay = JsNamedArray.create(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java index d97565b8..1e695c95 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/effects/PropertiesAnimation.java @@ -259,7 +259,6 @@ public class PropertiesAnimation extends GQAnimation { if (move && !g.css("position", true).matches("absolute|relative")) {
g.css("position", "relative");
}
- g.css("visibility", "visible");
super.onStart();
}
|