When embedding a GWT application in an iframe it looks like some of
the functions expected by widgets (like the absolute panel) don't
work.  For example, the DOMImplMozilla.class overrides the
DOMImpl.class (which just returns 0) as follows:

@Override
public native int getBodyOffsetLeft(Document doc) /*-{
    var style = $wnd.getComputedStyle(doc.documentElement, '');
    return parseInt(style.marginLeft) + parseInt
(style.borderLeftWidth);
  }-*/;

Style is null in the iframe case, but works just fine when it's at the
root/main level in the browser.

Is there a trick for getting these widgets to work when the
application is running in an iframe?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to