开发者

Is it possible maximize the window without JSNI

开发者 https://www.devze.com 2023-04-11 20:14 出处:网络
I\'m using this function to maximize the window: /** * Resize the principal window */ public static native void resizeWindow() /*-{

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,s开发者_如何学Pythoncreen.availHeight);
}-*/;

is it possible to maximize the browser window without JSNI ?


Check out the built in Window.moveTo(), and Window.resizeTo()

0

精彩评论

暂无评论...
验证码 换一张
取 消