2011-06-30 44 views
1

如何在頁面上的特定位置創建窗口彈出窗口?我看不出這樣做的一個簡單的方法,所以我總是使用window.centerInPage()Smart gwt窗口位置

回答

1

不知道這是最好的辦法,但工程:

int browserInnerWidth = com.google.gwt.user.client.Window.getClientWidth(); 
myWindow.show(); 
myWindow.setLeft(browserInnerWidth - windowWidth);