1)
in my ViewImpl-Class in the Consructor I have to create the frame and load the content.
The content (html-url) is from my war-directory:
frame = new Frame(GWT.getHostPageBaseURL() + "ClientData/myhtml.html");
frame.getElement().setId("framename");
=> $doc is right here because it is in my domain?
2)
After that I should wait until the frame content is fully loaded.
=> How can I handle this??
3)
If the content is loaded I call the setFrameSize()-Method.
public native boolean setFrameSize (String id)
/*-{
var newheight;
var newwidth;
var frame = $doc.getElementById(id)
if(frame !=null){
newheight=frame.contentWindow.$doc.body.scrollHeight;
newwidth=frame.contentWindow.$doc.body.scrollWidth;
One thing that hung my up was in mgwt the scroll panel has to be a direct child of touch panel, or something like that anyway.
If you like the idea of using css instead, I should have more time to help with an example later
The bad news is, the iframe underneath will not receive any events. In some extremely limited cases this might be okay.
.) working_mobile_scroll.html
displays a normal html with an iframe and I am able to scroll everywhere on mobile browser (e.g. on Android Google Chrome)