From d7b53ac3590f9c01873b3ef7acb995517790c412 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Tue, 16 Dec 2014 17:03:29 +0200 Subject: [PATCH] Fix keyboard navigation from footer/header to body (#13334) Change-Id: I2537a0931e26e001f641b27f7bb428e7941be56f --- client/src/com/vaadin/client/widgets/Grid.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 4f9c8945f8..32349116a5 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -5281,7 +5281,7 @@ public class Grid extends ResizeComposite implements do { lastRow = escalator.getBody().getRowElement(--lastRowIndex); - } while (lastRow.getAbsoluteBottom() > footerTop); + } while (lastRow.getAbsoluteTop() > footerTop); return lastRowIndex; } @@ -5292,7 +5292,7 @@ public class Grid extends ResizeComposite implements .getAbsoluteBottom(); Element firstRow = escalator.getBody().getRowElement(firstRowIndex); - while (firstRow.getAbsoluteTop() < headerBottom) { + while (firstRow.getAbsoluteBottom() < headerBottom) { firstRow = escalator.getBody().getRowElement(++firstRowIndex); } -- 2.39.5