From: Leif Åstrand Date: Mon, 18 Feb 2013 13:02:31 +0000 (+0200) Subject: Don't measure VUI during updateFromUIDL (#11063) X-Git-Tag: 7.0.1~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f3ad9cad8d3c12e3e25574569186d52c79c4f2a1;p=vaadin-framework.git Don't measure VUI during updateFromUIDL (#11063) Change-Id: Id4760652d9eeaae466e48ff468f905d7e2c867a1 --- 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; }