Hi all,

In my actual GWT Project, i have a strange error. I have a native
Javascript method for resizing the div, where my google map is in it.
The method works fine in the normal browser, but as soon as i run it
in the hosted mode, i get an error.

The method is:

public static native void adjustMapToBrowserWindow() /*-{
        var mapDiv = $doc.getElementById('map');
        var drivenWayDiv = $doc.getElementById('drivenWay');
        var drivenWayAnimatedDiv = $doc.getElementById('drivenWayAnimated');

    var offset = 130;
    var paddingOffset = 50;

    var windowHeight = $wnd.innerHeight;

    var mapHeight = windowHeight - offset;
    var formHeight = windowHeight - offset - paddingOffset;

    mapDiv.style.height = mapHeight + 'px';
    drivenWayDiv.style.height = formHeight + 'px';
    drivenWayAnimatedDiv.style.height = formHeight + 'px';
  }-*/;

The error Message is:

com.google.gwt.core.client.JavaScriptException: (Error): Invalid
Argument.
 number: -2147024809
 description: Invalid Argument.
        at
ch.zhaw.geotagging.web.client.GeoTaggingMain.adjustMapToBrowserWindow(Native
Method)
        at
ch.zhaw.geotagging.web.client.GeoTaggingMain.buildAndDisplayMainGUI(GeoTaggingMain.java:
79)
        at
ch.zhaw.geotagging.web.client.GeoTaggingMain.onModuleLoad(GeoTaggingMain.java:
32)

I can't figure out, which line causes the error, because ther is no
line number. Nr. 32 and 79 are only the calls of the method..I really
need the hosted mode for debugging, and as long as i have this error,
thats not possible.

I appreciate your help.

Thanks and with best regards.

Jan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to