From 65ac37ae63f65d17731dafdab85f0be53158ae78 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Mon, 26 Jun 2017 12:15:50 +0300 Subject: Clarify javadoc of Grid.scrollTo (#9582) Resolves #9265 --- server/src/main/java/com/vaadin/ui/Grid.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'server') diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index ac7eb4f0e9..58f834cafd 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -3682,11 +3682,12 @@ public class Grid extends AbstractListing implements HasComponents, /** * Scrolls to a certain item, using {@link ScrollDestination#ANY}. *

- * If the item has visible details, its size will also be taken into + * If the item has an open details row, its size will also be taken into * account. * * @param row - * id of item to scroll to. + * zero based index of the item to scroll to in the current + * view. * @throws IllegalArgumentException * if the provided id is not recognized by the data source. */ @@ -3697,10 +3698,12 @@ public class Grid extends AbstractListing implements HasComponents, /** * Scrolls to a certain item, using user-specified scroll destination. *

- * If the row has visible details, its size will also be taken into account. + * If the item has an open details row, its size will also be taken into + * account. * * @param row - * id of item to scroll to. + * zero based index of the item to scroll to in the current + * view. * @param destination * value specifying desired position of scrolled-to row, not * {@code null} -- cgit v1.2.3