diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2018-07-17 12:13:08 +0300 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2018-07-17 12:13:08 +0300 |
commit | 797916020376303d434f3d6ac1c7e8615bebd04a (patch) | |
tree | bcd94ef3ad3a5cedddeed24144693f73eb3b90e3 | |
parent | 327544670c3688db309a14d117b939b47b50fcb3 (diff) | |
download | vaadin-framework-797916020376303d434f3d6ac1c7e8615bebd04a.tar.gz vaadin-framework-797916020376303d434f3d6ac1c7e8615bebd04a.zip |
Fix Grid resetting row height on resize (#11056)
-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 |