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 @JSProperty
public abstract int getOuterHeight(); public abstract int getOuterHeight();
@JSProperty
public abstract int getScrollY();
@JSProperty @JSProperty
public abstract String getName(); public abstract String getName();

View File

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