Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jun 2, 2014
1 parent 7eaf65d commit bb458ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@
initializeViewport: function() {
this.$.viewport.style.height = this.height * this.data.length + 'px';
this._visibleCount = Math.ceil(this._target.offsetHeight / this.height);
this._physicalCount = this._visibleCount + this.extraItems;
this._physicalCount = Math.min(this._visibleCount + this.extraItems,
this.data.length);
this._physicalHeight = this.height * this._physicalCount;
},

Expand Down

0 comments on commit bb458ae

Please sign in to comment.