I am trying to get a DOMRect from an Element. I can do this with JSNI, but have been unable to make a JsInterop version. Here's what I have:
// returns DOMRect or null
public static native DOMRect getBoundingClientRect(Element element)
return element.getBoundingClientRect && element.getBoundingClientRect();
public final native double getX()
How can I do this? Thanks in advance...
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.