diff --git a/dist/jquery.gridster.js b/dist/jquery.gridster.js index f5b5fd2be..73551adc0 100644 --- a/dist/jquery.gridster.js +++ b/dist/jquery.gridster.js @@ -3795,7 +3795,7 @@ */ fn.add_faux_rows = function(rows) { var actual_rows = this.rows; - var max_rows = actual_rows + (rows || 1); + var max_rows = actual_rows + parseInt(rows || 1); for (var r = max_rows; r > actual_rows; r--) { for (var c = this.cols; c >= 1; c--) { diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 7bac91186..bbfde924c 100755 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -2960,7 +2960,7 @@ */ fn.add_faux_rows = function(rows) { var actual_rows = this.rows; - var max_rows = actual_rows + (rows || 1); + var max_rows = actual_rows + parseInt(rows || 1); for (var r = max_rows; r > actual_rows; r--) { for (var c = this.cols; c >= 1; c--) {