if (offsets == null) {
offsets = new int[] {0, 0};
}
Element c = container != null ? container : XDOM.getBody();
Point o = getOffsetsTo(c);
int l = o.x;
int t = o.y;
l = l + c.getScrollLeft();
t = t + c.getScrollTop();
int b = t + getHeight() + offsets[0];