pauloallonso
10 Oct 2011, 9:31 AM
I'm using this function to maximize the window:
/**
* Resize the principal window
*/
public static native void resizeWindow() /*-{
top.window.moveTo(0,0);
top.window.resizeTo(screen.availWidth,screen.availHeight);
}-*/;
is it possible to maximize the browser window without JSNI ? How can I get the avail Width and Height of the screen ? I have tried to use window.getClientHeight() for example, but this didn't work...
/**
* Resize the principal window
*/
public static native void resizeWindow() /*-{
top.window.moveTo(0,0);
top.window.resizeTo(screen.availWidth,screen.availHeight);
}-*/;
is it possible to maximize the browser window without JSNI ? How can I get the avail Width and Height of the screen ? I have tried to use window.getClientHeight() for example, but this didn't work...