*
* @return the scroll position
*/
public Scroll getScroll() {
if (dom == XDOM.getBody() || dom == XDOM.getDocument()) {
return new Scroll(XDOM.getBodyScrollLeft(), XDOM.getBodyScrollTop());
} else {
return new Scroll(getScrollLeft(), getScrollTop());
}
}