Added methods to expose the scrollY value and body offset (#324)

Add methods to expose the scrollY value of the window and the offset of the body.
This commit is contained in:
Mauro de Wit 2018-02-10 23:03:17 +01:00 committed by Alexey Andreev
parent 4f9110f7b1
commit c0d1714e0a
2 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,9 @@ public abstract class Window implements JSObject, WindowEventTarget, StorageProv
@JSProperty
public abstract int getOuterHeight();
@JSProperty
public abstract int getScrollY();
@JSProperty
public abstract String getName();

View File

@ -114,6 +114,9 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
@JSProperty
int getScrollHeight();
@JSProperty
int getOffsetHeight();
@JSProperty
@Override
HTMLDocument getOwnerDocument();