Skip to content

Commit

Permalink
Add missing "offset" properties on HTMLElement
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Nov 5, 2017
1 parent 2844f57 commit 88937d0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions jso/apis/src/main/java/org/teavm/jso/dom/html/HTMLElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
@JSProperty
void setClassName(String className);

@JSProperty
HTMLElement getOffsetParent();

@JSProperty
int getOffsetTop();

@JSProperty
int getOffsetLeft();

@JSProperty
int getOffsetWidth();

@JSProperty
int getOffsetHeight();

default HTMLElement withAttr(String name, String value) {
setAttribute(name, value);
return this;
Expand Down

0 comments on commit 88937d0

Please sign in to comment.