소스 검색

Fix the end limit of the allowed scrollTo rows. (#11771)

- Row index counts up from zero, data provider size counts up from one,
as one would expect. If the two match we are already past the available
range.
tags/8.10.0.alpha1
Anna Koskinen 4 년 전
부모
커밋
be5c6b9755
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      server/src/main/java/com/vaadin/ui/Grid.java

+ 1
- 1
server/src/main/java/com/vaadin/ui/Grid.java 파일 보기

@@ -4390,7 +4390,7 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents,
Objects.requireNonNull(destination,
"ScrollDestination can not be null");

if (row > getDataCommunicator().getDataProviderSize()) {
if (row >= getDataCommunicator().getDataProviderSize()) {
throw new IllegalArgumentException("Row outside dataProvider size");
}


Loading…
취소
저장