]> source.dussan.org Git - vaadin-framework.git/commitdiff
Actually mark all widgets as dirty for forceLayout (#8313)
authorLeif Åstrand <leif@vaadin.com>
Tue, 21 Feb 2012 13:26:35 +0000 (15:26 +0200)
committerLeif Åstrand <leif@vaadin.com>
Tue, 21 Feb 2012 13:26:35 +0000 (15:26 +0200)
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index 4fbb4b26b9dae6357dacb9355ed77c4fbddd94fe..2cb1b1fcd02458861bd5417e802a1a697ed9b980 100644 (file)
@@ -1594,6 +1594,15 @@ public class ApplicationConnection {
     public void forceLayout() {
         Duration duration = new Duration();
 
+        VPaintableMap paintableMap = getPaintableMap();
+        VPaintableWidget[] paintableWidgets = paintableMap
+                .getRegisteredPaintableWidgets();
+        for (VPaintableWidget vPaintableWidget : paintableWidgets) {
+            MeasuredSize measuredSize = vPaintableWidget.getMeasuredSize();
+            measuredSize.setHeightNeedsUpdate();
+            measuredSize.setWidthNeedsUpdate();
+        }
+
         doLayout(false);
 
         VConsole.log("forceLayout in " + duration.elapsedMillis() + " ms");