Merge pull request #147 from radiolips/bugfix/window-width
_is_one_column_mode unreliable within five pixels
This commit is contained in:
commit
a334bc951e
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue