Fixes grid height not updated when added new item using cellHeight = 'auto'
This commit is contained in:
parent
99653bded3
commit
e5d8c7bb39
1 changed files with 2 additions and 2 deletions
|
|
@ -1488,8 +1488,8 @@
|
|||
};
|
||||
|
||||
GridStack.prototype.cellWidth = function() {
|
||||
var o = this.container.children('.' + this.opts.itemClass).first();
|
||||
return Math.ceil(o.outerWidth() / parseInt(o.attr('data-gs-width'), 10));
|
||||
var o = $(this.container);
|
||||
return Math.ceil(o.outerWidth() / o.attr('data-gs-width'));
|
||||
};
|
||||
|
||||
GridStack.prototype.getCellFromPixel = function(position, useOffset) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue