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

Commit

Permalink
Fixes #48. Handle resize when no items were visible.
Browse files Browse the repository at this point in the history
On resize, only reset index for grid (only required there), and handle case where no item was previously visible.
  • Loading branch information
kevinpschaaf committed Nov 13, 2014
1 parent 0bcec60 commit 1a43071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@
* @method updateSize
*/
updateSize: function() {
this._resetIndex(this._getFirstVisibleIndex());
if (this.grid) {
this._resetIndex(this._getFirstVisibleIndex() || 0);
}
this.initializeData();
},

Expand Down

0 comments on commit 1a43071

Please sign in to comment.