]> source.dussan.org Git - vaadin-framework.git/commitdiff
try catch around unstable computed style method
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 17 Dec 2008 14:34:49 +0000 (14:34 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 17 Dec 2008 14:34:49 +0000 (14:34 +0000)
svn changeset:6255/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/Util.java

index bc03935ec613f1ef4dfc42804c125e06c14255e6..29854057ca5ef31f9b0921fee6e6198e64049828 100644 (file)
@@ -671,7 +671,8 @@ public class Util {
     private static native String getComputedStyle(
             com.google.gwt.dom.client.Element el, String p)
     /*-{
-
+        try {
+        
         if (el.currentStyle) {
             // IE
             return el.currentStyle[p];
@@ -682,6 +683,9 @@ public class Util {
             // fall back for non IE, Sa, FF, Opera
             return "";
         }
+        } catch (e) {
+            return "";
+        }
 
      }-*/;