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).

On Jul 22, 5:46 pm, Pandaman <[email protected]> wrote:
> 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).
--~--~---------~--~----~------------~-------~--~----~
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