From f3ad9cad8d3c12e3e25574569186d52c79c4f2a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Mon, 18 Feb 2013 15:02:31 +0200 Subject: [PATCH] Don't measure VUI during updateFromUIDL (#11063) Change-Id: Id4760652d9eeaae466e48ff468f905d7e2c867a1 --- client/src/com/vaadin/client/ui/ui/UIConnector.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/com/vaadin/client/ui/ui/UIConnector.java b/client/src/com/vaadin/client/ui/ui/UIConnector.java index 85e75b943e..800f809ade 100644 --- a/client/src/com/vaadin/client/ui/ui/UIConnector.java +++ b/client/src/com/vaadin/client/ui/ui/UIConnector.java @@ -20,6 +20,7 @@ import java.util.Iterator; import java.util.List; import com.google.gwt.core.client.Scheduler; +import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.dom.client.Style; import com.google.gwt.dom.client.Style.Position; @@ -312,7 +313,12 @@ public class UIConnector extends AbstractSingleComponentContainerConnector if (firstPaint) { // Queue the initial window size to be sent with the following // request. - getWidget().sendClientResized(); + Scheduler.get().scheduleDeferred(new ScheduledCommand() { + @Override + public void execute() { + getWidget().sendClientResized(); + } + }); } getWidget().rendering = false; } -- 2.39.5