mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
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:
parent
4f9110f7b1
commit
c0d1714e0a
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user