We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3f25f3 commit d947175Copy full SHA for d947175
src/jquery.gridster.js
@@ -2963,7 +2963,7 @@
2963
*/
2964
fn.add_faux_rows = function(rows) {
2965
var actual_rows = this.rows;
2966
- var max_rows = actual_rows + (rows || 1);
+ var max_rows = actual_rows + parseInt(rows || 1, 10);
2967
2968
for (var r = max_rows; r > actual_rows; r--) {
2969
for (var c = this.cols; c >= 1; c--) {
@@ -2989,7 +2989,7 @@
2989
2990
fn.add_faux_cols = function(cols) {
2991
var actual_cols = this.cols;
2992
- var max_cols = actual_cols + (cols || 1);
+ var max_cols = actual_cols + parseInt(cols || 1, 10);
2993
max_cols = Math.min(max_cols, this.options.max_cols);
2994
2995
for (var c = actual_cols + 1; c <= max_cols; c++) {
0 commit comments