diff options
author | Artur Signell <artur@vaadin.com> | 2012-06-28 22:19:33 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-06-28 22:25:28 +0300 |
commit | d5144d7e765784a90f70828c260a0a55e3713e47 (patch) | |
tree | 77b55cd07f25e74f65ecfd6b266245597f3c056b | |
parent | 71341fe761e67d6525265ed9407eb2d2adb1781f (diff) | |
download | vaadin-framework-d5144d7e765784a90f70828c260a0a55e3713e47.tar.gz vaadin-framework-d5144d7e765784a90f70828c260a0a55e3713e47.zip |
Avoid calling layoutNow() during state change (#9017)
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java | 2 | ||||
-rw-r--r-- | 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(); |