Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de951e9

Browse files
committed
jquery-ui packages
1 parent 14a9dba commit de951e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/gridstack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
(function (factory) {
77
if (typeof define === 'function' && define.amd) {
8-
define(['jquery', 'lodash'], factory);
8+
define(['jquery', 'lodash', 'jquery-ui/core', 'jquery-ui/widget', 'jquery-ui/mouse', 'jquery-ui/draggable', 'jquery-ui/resizable'], factory);
99
}
1010
else {
1111
factory(jQuery, _);
@@ -550,7 +550,7 @@
550550
};
551551

552552
GridStack.prototype._is_one_column_mode = function () {
553-
return $(window).width() <= this.opts.min_width;
553+
return (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) <= this.opts.min_width;
554554
};
555555

556556
GridStack.prototype._prepare_element = function (el) {

0 commit comments

Comments
 (0)