This commit is contained in:
Tom Cleven 2016-08-16 20:00:08 +00:00 committed by GitHub
commit 31b856af3d

View file

@ -1494,8 +1494,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) {