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

Commit 1a43071

Browse files
committed
Fixes #48. Handle resize when no items were visible.
On resize, only reset index for grid (only required there), and handle case where no item was previously visible.
1 parent 0bcec60 commit 1a43071

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core-list.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,9 @@
382382
* @method updateSize
383383
*/
384384
updateSize: function() {
385-
this._resetIndex(this._getFirstVisibleIndex());
385+
if (this.grid) {
386+
this._resetIndex(this._getFirstVisibleIndex() || 0);
387+
}
386388
this.initializeData();
387389
},
388390

0 commit comments

Comments
 (0)