For the GWT app I'm developing, I need to programmatically change the height of the browser window. Is there a way to do this in GWT? I've tried the following:
public static native void setWindowHeight(final int height) /*-{
$wnd.resizeTo($wnd.outerWidth, height);
}-*/;
But this does not just change the height, it also messes with the width. Moreover, I would like to keep this resizing functionality within GWT Java code (this uses JSNI).
Edit: this actually does not interfere with the width of most browsers - it resizes to the previous width and new height. It does "mess" up the width in my Google hosted mode browser though for some reason.
I actually would prefer something that would resize the client area of the browser (i.e. excluding the browser's toolbars and scrollbars etc.) instead of the window itself.
For example, com.google.gwt.user.client.Window has the following methods: getClientWidth() and getClientHeight(). I would like something that would be equivalent to setClientWidth(int width) and setClientHeight(int height) (keep in mind that these setters don't actually exist).