Skip to content

Commit

Permalink
Extend grid properly. Fixed add_faux_cell method
Browse files Browse the repository at this point in the history
  • Loading branch information
Bajena authored and Jan Bajena committed Jun 23, 2016
1 parent 3140374 commit a87159e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jquery.gridster.js
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,10 @@
this.gridmap[col] = [];
}

this.gridmap[col][row] = false;
if (this.gridmap[col].length <= row) {
this.gridmap[col][row] = false;
}

this.faux_grid.push(coords);

return this;
Expand Down

0 comments on commit a87159e

Please sign in to comment.