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

Commit bb458ae

Browse files
committed
fixes #1
1 parent 7eaf65d commit bb458ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core-list.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@
167167
initializeViewport: function() {
168168
this.$.viewport.style.height = this.height * this.data.length + 'px';
169169
this._visibleCount = Math.ceil(this._target.offsetHeight / this.height);
170-
this._physicalCount = this._visibleCount + this.extraItems;
170+
this._physicalCount = Math.min(this._visibleCount + this.extraItems,
171+
this.data.length);
171172
this._physicalHeight = this.height * this._physicalCount;
172173
},
173174

0 commit comments

Comments
 (0)