From dffe1597cd97f2bbbd8300773cb99302aa9783e5 Mon Sep 17 00:00:00 2001 From: Markus Koivisto Date: Tue, 5 Apr 2016 16:08:09 +0300 Subject: Refresh grid body after resize (#19664) Change-Id: I8531f9d39aaa5854108e1bee9db121b0e54be770 --- client/src/com/vaadin/client/widgets/Grid.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client') diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index c4e3491992..db194f9b60 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -8491,6 +8491,11 @@ public class Grid extends ResizeComposite implements if (isEditorActive()) { editor.updateVerticalScrollPosition(); } + + // if there is a resize, we need to refresh the body to avoid an + // off-by-one error which occurs when the user scrolls all the + // way to the bottom. + refreshBody(); } }); } -- cgit v1.2.3