Browse Source

Ensure temporary layout manager state is cleared at the end of a layout phase

Change-Id: I28f3d20e6db999a033429338535719f14e495d4f
tags/7.7.2
Artur Signell 7 years ago
parent
commit
c665731b0b
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      client/src/main/java/com/vaadin/client/LayoutManager.java

+ 7
- 0
client/src/main/java/com/vaadin/client/LayoutManager.java View 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()

Loading…
Cancel
Save