If it is the computed size you are looking for, GWT does not provide it out of the box, but you should be able to use a simple JSNI
to retrieve it. Something like:
public static native String getComputedStyleProperty(Element element, String property) /*-{
if ($doc.defaultView && $doc.defaultView.getComputedStyle) {
return $doc.defaultView.getComputedStyle(element, null).getPropertyValue(property);
}
return "";
}-*/;
Untested but should get you started. Do note that, the property
should be camelCase
and, for IE < 9, you should also check for currentStyle
. Also a fallback based on element
's style property should be returned, instead the empty string.
See also Get computed font size for DOM element in JS.