]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't measure VUI during updateFromUIDL (#11063)
authorLeif Åstrand <leif@vaadin.com>
Mon, 18 Feb 2013 13:02:31 +0000 (15:02 +0200)
committerVaadin Code Review <review@vaadin.com>
Mon, 18 Feb 2013 14:57:47 +0000 (14:57 +0000)
Change-Id: Id4760652d9eeaae466e48ff468f905d7e2c867a1

client/src/com/vaadin/client/ui/ui/UIConnector.java

index 85e75b943e78030af6eeac9b6a5d741653e5e0a3..800f809adedbdbbc3d2fdde6175a5a1cf8195a20 100644 (file)
@@ -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;
     }