Merge pull request #147 from radiolips/bugfix/window-width

_is_one_column_mode unreliable within five pixels
This commit is contained in:
Pavel Reznikov 2015-05-29 19:22:39 -07:00
commit a334bc951e

View file

@ -550,7 +550,7 @@
};
GridStack.prototype._is_one_column_mode = function () {
return $(window).width() <= this.opts.min_width;
return (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) <= this.opts.min_width;
};
GridStack.prototype._prepare_element = function (el) {