aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-07-17 12:13:08 +0300
committerIlia Motornyi <elmot@vaadin.com>2018-07-17 12:13:08 +0300
commit797916020376303d434f3d6ac1c7e8615bebd04a (patch)
treebcd94ef3ad3a5cedddeed24144693f73eb3b90e3
parent327544670c3688db309a14d117b939b47b50fcb3 (diff)
downloadvaadin-framework-797916020376303d434f3d6ac1c7e8615bebd04a.tar.gz
vaadin-framework-797916020376303d434f3d6ac1c7e8615bebd04a.zip
Fix Grid resetting row height on resize (#11056)
-rwxr-xr-xclient/src/main/java/com/vaadin/client/widgets/Grid.java7
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