Fix for willItFit function in case of grid height = 1
This commit is contained in:
parent
99653bded3
commit
cdeb6b0599
1 changed files with 5 additions and 0 deletions
5
dist/gridstack.js
vendored
5
dist/gridstack.js
vendored
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue