diff --git a/src/gridstack.js b/src/gridstack.js index 4587c48..4afdcfc 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -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) {