如何在gwt中获取com.google.gwt.user.client.Window maxWidth和maxHeight
请问如何在gwt中获取如何在gwt中获取com.google.gwt.user.client.Window maxWidth和maxHeight,gwt,Gwt,请问如何在gwt中获取com.google.gwt.user.client.WindowmaxWidth和maxHeight?我可以直接调用Window.getClientWidth()和Window.getClientHeight(),但它不会告诉我这是否是我的窗口的最大宽度和高度:/ 最好的方法就是: public native int getScreenWidth() /*-{ return screen.width; }-*/; public native int getScree
com.google.gwt.user.client.Window
maxWidth
和maxHeight
?我可以直接调用Window.getClientWidth()
和Window.getClientHeight()
,但它不会告诉我这是否是我的窗口的最大宽度和高度:/
最好的方法就是:
public native int getScreenWidth() /*-{
return screen.width;
}-*/;
public native int getScreenHeight() /*-{
return screen.height;
}-*/ ;