*/
public static int getRequiredWidthBoundingClientRect(
com.google.gwt.dom.client.Element element) {
- return (int) getRequiredWidthBoundingClientRectDouble(element);
+ return (int) Math
+ .ceil(getRequiredWidthBoundingClientRectDouble(element));
}
/**
/*-{
if (element.getBoundingClientRect) {
var rect = element.getBoundingClientRect();
- return Math.ceil(rect.right - rect.left);
+ return rect.right - rect.left;
} else {
return element.offsetWidth;
}
*/
public static int getRequiredHeightBoundingClientRect(
com.google.gwt.dom.client.Element element) {
- return (int) getRequiredHeightBoundingClientRectDouble(element);
+ return (int) Math
+ .ceil(getRequiredHeightBoundingClientRectDouble(element));
}
/**
var height;
if (element.getBoundingClientRect != null) {
var rect = element.getBoundingClientRect();
- height = Math.ceil(rect.bottom - rect.top);
+ height = rect.bottom - rect.top;
} else {
height = element.offsetHeight;
}