如何在GWT中获取com.google.gwt.user.client.Window maxWidth和maxHeigh



我怎样才能在GWT中获得com.google.gwt.user.client.WindowmaxWidthmaxHeight?我可以打电话给Window.getClientWidth()Window.getClientHeight()但它没有告诉我它是否是我的窗口的最大宽度和高度:/

最好

只需 :

public native int getScreenWidth() /*-{
return screen.width;
}-*/;
public native int getScreenHeight() /*-{
return screen.height;
}-*/ ;

最新更新