Fix for willItFit function in case of grid height = 1

This commit is contained in:
Bilal Hanif 2016-06-16 14:40:33 +05:00
commit cdeb6b0599

5
dist/gridstack.js vendored
View file

@ -398,6 +398,11 @@
this.float,
0,
_.map(this.nodes, function(n) { return $.extend({}, n); }));
if (this.height == 1 && !this.isAreaEmpty(node.x, node.y, node.width, node.height)){
return false;
}
clone.addNode(node);
return clone.getGridHeight() <= this.height;
};