diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-02-21 15:26:35 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-02-21 15:26:35 +0200 |
commit | 5238720d54ed68d0fef0957e693bd40e25495107 (patch) | |
tree | 2e709e0df922cc358c66ecd00fccd157640954f1 /src/com/vaadin | |
parent | 733b655faacc678dc2e5c5838e08aaf4d2275c5f (diff) | |
download | vaadin-framework-5238720d54ed68d0fef0957e693bd40e25495107.tar.gz vaadin-framework-5238720d54ed68d0fef0957e693bd40e25495107.zip |
Actually mark all widgets as dirty for forceLayout (#8313)
Diffstat (limited to 'src/com/vaadin')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ApplicationConnection.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 4fbb4b26b9..2cb1b1fcd0 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -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"); |