public GQuery one(int eventbits, final Object data, final Function f) {\r
return as(Events).one(eventbits, data, f);\r
}\r
+ \r
+ /**\r
+ * Get the current computed height for the first element in the set of matched elements, \r
+ * including padding, border, but not the margin.\r
+ */\r
+ public int outerHeight(){\r
+ return outerHeight(false);\r
+ }\r
+ \r
+ /**\r
+ * Get the current computed height for the first element in the set of matched elements, \r
+ * including padding, border, and optionally margin.\r
+ */\r
+ public int outerHeight(boolean includeMargin){\r
+ int outerHeight = get(0).getOffsetHeight(); //height including padding and border\r
+ if (includeMargin){\r
+ outerHeight+=GQUtils.cur( get(0), "marginTop", true)+GQUtils.cur( get(0), "marginBottom", true);\r
+ }\r
+ return outerHeight;\r
+ } \r
+ \r
+ /**\r
+ * Get the current computed width for the first element in the set of matched elements, \r
+ * including padding, border, but not the margin.\r
+ */\r
+ public int outerWidth(){\r
+ return outerWidth(false);\r
+ }\r
+ \r
+ /**\r
+ * Get the current computed width for the first element in the set of matched elements, \r
+ * including padding and border and optionally margin.\r
+ */\r
+ public int outerWidth(boolean includeMargin){\r
+ int outerWidth = get(0).getOffsetWidth(); //width including padding and border\r
+ if (includeMargin){\r
+ outerWidth+=GQUtils.cur( get(0), "marginRight", true)+GQUtils.cur( get(0), "marginLeft", true);\r
+ }\r
+ return outerWidth;\r
+ } \r
\r
/**\r
* Get a set of elements containing the unique parents of the matched set of\r
dataCache.delete(id);\r
}\r
}\r
-\r
}\r
*/
LazyGQuery<T> one(int eventbits, Object data, Function f);
+ /**
+ * Get the current computed width for the first element in the set of matched elements,
+ * including padding, border, but not the margin.
+ */
+ int outerWidth();
+
+ /**
+ * Get the current computed width for the first element in the set of matched elements,
+ * including padding and border and optionally margin.
+ */
+ int outerWidth(boolean includeMargin);
+
+ /**
+ * Get the current computed height for the first element in the set of matched elements,
+ * including padding, border, but not the margin.
+ */
+ int outerHeight();
+
+ /**
+ * Get the current computed height for the first element in the set of matched elements,
+ * including padding, border, and optionally margin.
+ */
+ int outerHeight(boolean includeMargin);
+
/**
* Get a set of elements containing the unique parents of the matched set of
* elements.