diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-07-17 12:13:08 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-07-30 16:45:46 +0300 |
commit | 1db391038597687ed01406d7b7f466205d634f39 (patch) | |
tree | 48aa18058c23874c0f37305c62f738992a22f808 | |
parent | 256124011404bcb8fb57d089d8f93225d13d1892 (diff) | |
download | vaadin-framework-1db391038597687ed01406d7b7f466205d634f39.tar.gz vaadin-framework-1db391038597687ed01406d7b7f466205d634f39.zip |
Fix Grid resetting row height on resize (#11056)
(cherry picked from commit 7979160)
-rwxr-xr-x | client/src/main/java/com/vaadin/client/widgets/Grid.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java index 7b013f8d87..fd32ca8243 100755 --- a/client/src/main/java/com/vaadin/client/widgets/Grid.java +++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java @@ -9146,7 +9146,12 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, } if (getEscalatorInnerHeight() != autoColumnWidthsRecalculator.lastCalculatedInnerHeight) { - resetSizesFromDom(); + Scheduler.get().scheduleFinally(() -> { + // Trigger re-calculation of all row positions. + RowContainer.BodyRowContainer body = getEscalator() + .getBody(); + body.setDefaultRowHeight(body.getDefaultRowHeight()); + }); } // Vertical resizing could make editor positioning invalid so it |