aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2014-08-08 09:54:33 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2014-08-08 21:23:22 +0000
commit4c84557d3c6107978443292ddfab089af4ec1b63 (patch)
treeafc55cc5d191fe8a36b5fdb894b9e6cb901086d0 /client
parent1102d5fb4eec9a712cd8f770dfa023e842abd830 (diff)
downloadvaadin-framework-4c84557d3c6107978443292ddfab089af4ec1b63.tar.gz
vaadin-framework-4c84557d3c6107978443292ddfab089af4ec1b63.zip
Fix Grid SubPart API to allow finding body element (#13334)
Change-Id: I908fb6902f96e3c2b76091f6e40aeb0556d78b27
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/grid/Grid.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/Grid.java b/client/src/com/vaadin/client/ui/grid/Grid.java
index d1858a8f3f..d5582e0202 100644
--- a/client/src/com/vaadin/client/ui/grid/Grid.java
+++ b/client/src/com/vaadin/client/ui/grid/Grid.java
@@ -2027,7 +2027,7 @@ public class Grid<T> extends Composite implements
} else if (type.equalsIgnoreCase("cell")) {
// If wanted row is not visible, we need to scroll there.
Range visibleRowRange = escalator.getVisibleRowRange();
- if (!visibleRowRange.contains(indices[0])) {
+ if (indices.length > 0 && !visibleRowRange.contains(indices[0])) {
try {
scrollToRow(indices[0]);
} catch (IllegalArgumentException e) {