angular-gridster2
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -155,6 +155,9 @@ "use strict"; | ||
var rows = this.$options.minRows, columns = this.$options.minCols; | ||
var widgetsIndex = this.grid.length - 1; | ||
var widgetsIndex = this.grid.length - 1, widget; | ||
for (; widgetsIndex >= 0; widgetsIndex--) { | ||
rows = Math.max(rows, this.grid[widgetsIndex].$item.y + this.grid[widgetsIndex].$item.rows); | ||
columns = Math.max(columns, this.grid[widgetsIndex].$item.x + this.grid[widgetsIndex].$item.cols); | ||
widget = this.grid[widgetsIndex]; | ||
if (!widget.notPlaced) { | ||
rows = Math.max(rows, widget.$item.y + widget.$item.rows); | ||
columns = Math.max(columns, widget.$item.x + widget.$item.cols); | ||
} | ||
} | ||
@@ -161,0 +164,0 @@ this.columns = columns; |
{ | ||
"name": "angular-gridster2", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"license": "MIT", | ||
@@ -70,3 +70,3 @@ "main": "dist/index.js", | ||
"codelyzer": "4.2.1", | ||
"core-js": "2.5.4", | ||
"core-js": "2.5.5", | ||
"del": "3.0.0", | ||
@@ -89,4 +89,4 @@ "gulp": "4.0.0", | ||
"typescript": "2.6.2", | ||
"zone.js": "0.8.25" | ||
"zone.js": "0.8.26" | ||
} | ||
} |
193236
3543