Skip to content

Commit

Permalink
fix(virtual-repeat): move views at top and bottom when virtualised
Browse files Browse the repository at this point in the history
  • Loading branch information
martingust committed Mar 25, 2016
1 parent 4f10fcc commit 7775796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/virtual-repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ export class VirtualRepeat {
let nextIndex = getNextIndex(index, i);
this.isLastIndex = nextIndex >= items.length - 1;
this.isAtTop = nextIndex <= 0;
if (!isAtFirstOrLastIndex()) {

if(!(isAtFirstOrLastIndex() && childrenLength >= items.length)) {
rebindAndMoveView(this, view, nextIndex, this._scrollingDown);
i++;
}
Expand Down

0 comments on commit 7775796

Please sign in to comment.