Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
#23 API for getting the section number of an item
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Ismail committed Apr 2, 2014
1 parent 466e245 commit 46ab62d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gridList.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ GridList.prototype = {
item2.y + item2.h <= item1.y);
},

_getSection: function(item) {
return Math.floor(item.x / this.options.columnsPerGroup);
},

_moveAllSectionsToTheRight: function(sectionStartingWith, itemToSkip) {
var itemsInSection, i, itemToMove,
_gridList = new GridList([], this.options);
Expand Down

0 comments on commit 46ab62d

Please sign in to comment.