From 60343f28053bb4e1fdbfdafa3169ff8744b24041 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Sun, 23 Jan 2011 08:11:42 +0000 Subject: [PATCH] fixing width method which was returning 0 in IE when not set --- .../src/main/java/com/google/gwt/query/client/GQuery.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index cf0111b4..57616c0d 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -1287,7 +1287,7 @@ public class GQuery implements Lazy { * Get the current computed, pixel, height of the first matched element. */ public int height() { - return get(0).getOffsetHeight(); + return (int)cur("height", true); } /** @@ -2546,7 +2546,7 @@ public class GQuery implements Lazy { * Get the current computed, pixel, width of the first matched element. */ public int width() { - return get(0).getClientWidth(); + return (int)cur("width", true); } /** -- 2.39.5