Skip to content

Commit a87159e

Browse files
BajenaJan Bajena
authored andcommitted
Extend grid properly. Fixed add_faux_cell method
1 parent 3140374 commit a87159e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/jquery.gridster.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,10 @@
29442944
this.gridmap[col] = [];
29452945
}
29462946

2947-
this.gridmap[col][row] = false;
2947+
if (this.gridmap[col].length <= row) {
2948+
this.gridmap[col][row] = false;
2949+
}
2950+
29482951
this.faux_grid.push(coords);
29492952

29502953
return this;

0 commit comments

Comments
 (0)