]> source.dussan.org Git - gwtquery.git/commitdiff
fixing width method which was returning 0 in IE when not set
authorManolo Carrasco <manolo@apache.org>
Sun, 23 Jan 2011 08:11:42 +0000 (08:11 +0000)
committerManolo Carrasco <manolo@apache.org>
Sun, 23 Jan 2011 08:11:42 +0000 (08:11 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java

index cf0111b4d4444b01d4f892a0607bce55926ddf21..57616c0db3781b9f069aeb4ada0fd7324f5ac019 100644 (file)
@@ -1287,7 +1287,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
    * Get the current computed, pixel, height of the first matched element.\r
    */\r
   public int height() {\r
-    return get(0).getOffsetHeight();\r
+    return (int)cur("height", true);\r
   }\r
 \r
   /**\r
@@ -2546,7 +2546,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
    * Get the current computed, pixel, width of the first matched element.\r
    */\r
   public int width() {\r
-    return get(0).getClientWidth();\r
+    return (int)cur("width", true);\r
   }\r
 \r
   /**\r