From: Anna Koskinen Date: Fri, 5 Mar 2021 11:11:30 +0000 (+0200) Subject: Fixed input to ensureAvailabilty (#12208) (#12224) X-Git-Tag: 8.12.4~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5b79292fc5128ca17202b5e36fa16d3154c06f26;p=vaadin-framework.git Fixed input to ensureAvailabilty (#12208) (#12224) Authored-by: Oliver Buchien <30312325+BuchienDP@users.noreply.github.com> --- diff --git a/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java b/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java index 253e03a80c..54f7a112d4 100644 --- a/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java @@ -208,7 +208,7 @@ public class TreeGridConnector extends GridConnector { .getVisibleRowRange(); getDataSource().ensureAvailability( visibleRowRange.getStart(), - visibleRowRange.getEnd()); + visibleRowRange.length()); } checkExpand(); } @@ -222,7 +222,7 @@ public class TreeGridConnector extends GridConnector { .getVisibleRowRange(); getDataSource().ensureAvailability( visibleRowRange.getStart(), - visibleRowRange.getEnd()); + visibleRowRange.length()); } checkExpand(); }