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
|
||||
public abstract int getOuterHeight();
|
||||
|
||||
@JSProperty
|
||||
public abstract int getScrollY();
|
||||
|
||||
@JSProperty
|
||||
public abstract String getName();
|
||||
|
||||
|
|
|
@ -114,6 +114,9 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
|
|||
@JSProperty
|
||||
int getScrollHeight();
|
||||
|
||||
@JSProperty
|
||||
int getOffsetHeight();
|
||||
|
||||
@JSProperty
|
||||
@Override
|
||||
HTMLDocument getOwnerDocument();
|
||||
|
|
Loading…
Reference in New Issue
Block a user