From fca1779772808cda5d1dc5d75688069362d2b993 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 28 Jun 2012 21:36:43 +0300 Subject: [PATCH] Send the initial browser window size with the first server request (#9017) --- .../vaadin/terminal/gwt/client/ui/root/RootConnector.java | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.39.5