Change-Id: I630cdc0cf4cc83646d1dbe8513f81f5ddd6aa7d7
* @param height
* The new height
*/
- public void setBrowserWindowSize(int width, int height) {
+ public void updateBrowserWindowSize(int width, int height) {
boolean fireEvent = false;
if (width != browserWindowWidth) {
public void resize(int viewWidth, int viewHeight, int windowWidth,
int windowHeight) {
// TODO We're not doing anything with the view dimensions
- getPage().setBrowserWindowSize(windowWidth, windowHeight);
+ getPage().updateBrowserWindowSize(windowWidth, windowHeight);
}
};
UI someUI = this;
Page page = someUI.getPage();
- page.setBrowserWindowSize(page.getBrowserWindowWidth() + 10,
- page.getBrowserWindowHeight() + 10);
page.addBrowserWindowResizeListener(new BrowserWindowResizeListener() {
@Override
public void browserWindowResized(BrowserWindowResizeEvent event) {