]> source.dussan.org Git - vaadin-framework.git/commitdiff
Renamed setBrowserWindowSize -> updateBrowserWindowSize (#10305) 11/311/1
authorArtur Signell <artur@vaadin.com>
Wed, 21 Nov 2012 08:29:23 +0000 (10:29 +0200)
committerArtur Signell <artur@vaadin.com>
Wed, 21 Nov 2012 08:29:23 +0000 (10:29 +0200)
Change-Id: I630cdc0cf4cc83646d1dbe8513f81f5ddd6aa7d7

server/src/com/vaadin/server/Page.java
server/src/com/vaadin/ui/UI.java
uitest/src/com/vaadin/tests/minitutorials/v7b1/AxessingWebPageAndBrowserInfoUI.java

index 501172f80ae75ee8ce9d3e0e75943ddc65334775..6746eadc580dadceee2fe403d42d83d1f7e81be3 100644 (file)
@@ -472,7 +472,7 @@ public class Page implements Serializable {
      * @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) {
index 83936a74786b14bf911922ed532448f370f2ef14..f6101be9168e7da9a000ecca12cbc5cf3a7bb41f 100644 (file)
@@ -163,7 +163,7 @@ public abstract class UI extends AbstractSingleComponentContainer implements
         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);
         }
     };
 
index 8fb75361903ae41df0dfafbf2f285d5a4e9b1968..4fbe62a2cef10517bfe3d22aeb03f4a31cacd918 100644 (file)
@@ -33,8 +33,6 @@ public class AxessingWebPageAndBrowserInfoUI extends AbstractTestUI {
         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) {