From: Artur Signell Date: Thu, 28 Jun 2012 18:36:43 +0000 (+0300) Subject: Send the initial browser window size with the first server request (#9017) X-Git-Tag: 7.0.0.alpha3~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fca1779772808cda5d1dc5d75688069362d2b993;p=vaadin-framework.git Send the initial browser window size with the first server request (#9017) --- 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 1a62e566ad..d6e75c2d67 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/root/RootConnector.java @@ -246,6 +246,11 @@ public class RootConnector extends AbstractComponentContainerConnector getWidget().currentFragment, false); } + if (firstPaint) { + // Queue the initial window size to be sent with the following + // request. + getWidget().performSizeCheck(); + } getWidget().rendering = false; }