我怎样才能在GWT中获得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;
}-*/ ;