]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid calling layoutNow() during state change (#9017)
authorArtur Signell <artur@vaadin.com>
Thu, 28 Jun 2012 19:19:33 +0000 (22:19 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 28 Jun 2012 19:25:28 +0000 (22:25 +0300)
src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java
src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java

index d6e75c2d67c99a1764c12d8e9535116f722773a8..2371fb1140c75d4c7d44f8eff7903fea99df5f92 100644 (file)
@@ -249,7 +249,7 @@ public class RootConnector extends AbstractComponentContainerConnector
         if (firstPaint) {
             // Queue the initial window size to be sent with the following
             // request.
-            getWidget().performSizeCheck();
+            getWidget().sendClientResized();
         }
         getWidget().rendering = false;
     }
index 0af8919280b5be8abb85dafad25256bc5449b77e..142a0fd89ca9f585e314a66f7a78b23d7b685e9f 100644 (file)
@@ -395,7 +395,7 @@ public class VRoot extends SimplePanel implements ResizeHandler,
     /**
      * Send new dimensions to the server.
      */
-    private void sendClientResized() {
+    void sendClientResized() {
         Element parentElement = getElement().getParentElement();
         int viewHeight = parentElement.getClientHeight();
         int viewWidth = parentElement.getClientWidth();