jquery-ui packages

This commit is contained in:
Pavel Reznikov 2015-06-18 18:34:26 -07:00
commit de951e92c6
3 changed files with 4 additions and 4 deletions

4
dist/gridstack.js vendored
View file

@ -5,7 +5,7 @@
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery', 'lodash'], factory);
define(['jquery', 'lodash', 'jquery-ui/core', 'jquery-ui/widget', 'jquery-ui/mouse', 'jquery-ui/draggable', 'jquery-ui/resizable'], factory);
}
else {
factory(jQuery, _);
@ -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) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long