Commit d14a391
committed
fix(virtual-repeat): Correctly handle items array smaller than elements in view
this._first becomes negative if this.items.length is smaller than
this.elementsInView. This negative index creates problems retrieving
data
This closes issue #111. Also the test 'VirtualRepeat Integration
infinite scroll handles getting next data set with small page size' is
changed because it wrongfully expected scrolling when the number of
items were less than the elements in the view.1 parent 9dda64f commit d14a391
File tree
2 files changed
+15
-2
lines changed- src
- test
2 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
624 | 636 | | |
625 | 637 | | |
626 | 638 | | |
| |||
0 commit comments