diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-04-18 12:36:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-18 12:36:00 +0300 |
commit | 695ae21edbe477aae501fa137b33b143c49594c7 (patch) | |
tree | b8dcc2d4453d4f19887b02535cf68be0b711baa2 /client | |
parent | 9a0f1c136168fbc7b63570b88da7a9cba9de389c (diff) | |
download | vaadin-framework-695ae21edbe477aae501fa137b33b143c49594c7.tar.gz vaadin-framework-695ae21edbe477aae501fa137b33b143c49594c7.zip |
Schedule DOM reset after column size setting (#9011)
Otherwise, the initial row height state update partly negates
an earlier optimization for unnecessary column width calculation.
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java index c7b759c7fb..0181980ef8 100644 --- a/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java +++ b/client/src/main/java/com/vaadin/client/connectors/grid/GridConnector.java @@ -338,7 +338,9 @@ public class GridConnector extends AbstractListingConnector getWidget().getEscalator().getFooter() .setDefaultRowHeight(rowHeight); } else if (getWidget().isAttached()) { - getWidget().resetSizesFromDom(); + // finally to make sure column sizes have been set before this + Scheduler.get() + .scheduleFinally(() -> getWidget().resetSizesFromDom()); } } |