From d5144d7e765784a90f70828c260a0a55e3713e47 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 28 Jun 2012 22:19:33 +0300 Subject: [PATCH] Avoid calling layoutNow() during state change (#9017) --- src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java | 2 +- src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java b/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java index d6e75c2d67..2371fb1140 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java @@ -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; } diff --git a/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java b/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java index 0af8919280..142a0fd89c 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java +++ b/src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java @@ -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(); -- 2.39.5