angular-gridster2
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -169,5 +169,6 @@ "use strict"; | ||
else if (this.checkCollision(item)) { | ||
console.warn('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' + | ||
JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); | ||
item.x = undefined; | ||
item.y = undefined; | ||
console.log('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' + JSON.stringify(item)); | ||
this.autoPositionItem(item); | ||
@@ -225,3 +226,4 @@ } | ||
else { | ||
console.log('Can\'t be placed in the bounds of the dashboard!/n' + JSON.stringify(item)); | ||
console.warn('Can\'t be placed in the bounds of the dashboard!/n' + | ||
JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); | ||
} | ||
@@ -228,0 +230,0 @@ }; |
@@ -187,5 +187,6 @@ import {Component, OnInit, ElementRef, Input, OnDestroy, Renderer} from '@angular/core'; | ||
} else if (this.checkCollision(item)) { | ||
console.warn('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' + | ||
JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); | ||
item.x = undefined; | ||
item.y = undefined; | ||
console.log('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' + JSON.stringify(item)); | ||
this.autoPositionItem(item); | ||
@@ -244,3 +245,4 @@ } | ||
} else { | ||
console.log('Can\'t be placed in the bounds of the dashboard!/n' + JSON.stringify(item)); | ||
console.warn('Can\'t be placed in the bounds of the dashboard!/n' + | ||
JSON.stringify(item, ['cols', 'rows', 'x', 'y', 'id'])); | ||
} | ||
@@ -247,0 +249,0 @@ } |
{ | ||
"name": "angular-gridster2", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/gridster.module.js", |
Sorry, the diff of this file is not supported yet
201239
2960