I'm still unable to do this. I want to be able to get a DOMRect from a
com.google.gwt.dom.client.Element with JsInterop. If I cast to this Element
class, or even ((HasGetBoundingClientRect) (Object) element), I will get a
(runtime) java.lang.ClassCastException. The cast to Object works, of
Thanks! I didn't think of casting to Object first... I'll give it a try. I
generally turn on as many compiler warnings as I can stand to get my code
to compile through a strict filter, but I was getting outright errors.
Also, namespace with "Element", Doh! of course...
On Thursday, February
Greetings
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:
public final class DOMRect extends JavaScriptObject
{
// returns DOMRect or null
public static native DOMRect getBoundingClientRect(Element