]> source.dussan.org Git - vaadin-framework.git/commitdiff
Ensure temporary layout manager state is cleared at the end of a layout phase
authorArtur Signell <artur@vaadin.com>
Fri, 16 Sep 2016 11:11:26 +0000 (14:11 +0300)
committerArtur Signell <artur@vaadin.com>
Fri, 16 Sep 2016 11:12:26 +0000 (14:12 +0300)
Change-Id: I28f3d20e6db999a033429338535719f14e495d4f

client/src/main/java/com/vaadin/client/LayoutManager.java

index ed83e195d7bd1bc8be1672b872cef41b1f827a54..371ea46d3dd1ef37fe20d7b55fbb009a737c83b6 100644 (file)
@@ -600,6 +600,13 @@ public class LayoutManager {
         Profiler.leave("layout PostLayoutListener");
 
         cleanMeasuredSizes();
+        // Ensure temporary variables are cleaned
+        if (!pendingOverflowFixes.isEmpty()) {
+            getLogger().warning(
+                    "pendingOverflowFixes is not empty at the end of doLayout: "
+                            + pendingOverflowFixes.dump());
+            pendingOverflowFixes = FastStringSet.create();
+        }
 
         getLogger().info(
                 "Total layout phase time: " + totalDuration.elapsedMillis()