summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-06-28 22:19:33 +0300
committerArtur Signell <artur@vaadin.com>2012-06-28 22:25:28 +0300
commitd5144d7e765784a90f70828c260a0a55e3713e47 (patch)
tree77b55cd07f25e74f65ecfd6b266245597f3c056b
parent71341fe761e67d6525265ed9407eb2d2adb1781f (diff)
downloadvaadin-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.java2
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/root/VRoot.java2
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();