aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-12-18 18:46:35 +0200
committerLeif Åstrand <leif@vaadin.com>2014-12-18 21:13:15 +0000
commite4aa47017a1d99ad6dcc3e68a86a7014b0c59e28 (patch)
tree29752532c17ae3d8ab00b6b239e2dc179281c8f5 /client/src
parent6e35854213946f2400f50d9e1d1dee04b5c84cb2 (diff)
downloadvaadin-framework-e4aa47017a1d99ad6dcc3e68a86a7014b0c59e28.tar.gz
vaadin-framework-e4aa47017a1d99ad6dcc3e68a86a7014b0c59e28.zip
Prevent scrolling when adding rows above the focused cell (#13334)
Change-Id: Ic9c9285bae16f7ddec72f621976667ee68a7c103
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/widgets/Grid.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java
index 1fad13ea7b..50a41cd324 100644
--- a/client/src/com/vaadin/client/widgets/Grid.java
+++ b/client/src/com/vaadin/client/widgets/Grid.java
@@ -1779,8 +1779,7 @@ public class Grid<T> extends ResizeComposite implements
boolean bodyHasFocus = (containerWithFocus == escalator.getBody());
boolean insertionIsAboveFocusedCell = (added.getStart() <= rowWithFocus);
if (bodyHasFocus && insertionIsAboveFocusedCell) {
- setCellFocus(rowWithFocus + added.length(),
- cellFocusRange.getStart(), containerWithFocus);
+ rowWithFocus += added.length();
}
}