]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed input to ensureAvailabilty (#12208) (#12224)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Fri, 5 Mar 2021 11:11:30 +0000 (13:11 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Mar 2021 11:11:30 +0000 (13:11 +0200)
Authored-by: Oliver Buchien <30312325+BuchienDP@users.noreply.github.com>
client/src/main/java/com/vaadin/client/ui/treegrid/TreeGridConnector.java

index 253e03a80c86e806793c2980342363a4822e5a15..54f7a112d48942d1f6a86b05282375588fce8d93 100644 (file)
@@ -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();
             }