fix #267
This commit is contained in:
parent
c43a12ac06
commit
7c586417fb
5 changed files with 13 additions and 6 deletions
|
|
@ -828,6 +828,7 @@ Changes
|
|||
- add `enableMove`/`enableResize` methods.
|
||||
- fix window resize issue #331.
|
||||
- add options `disableDrag` and `disableResize`.
|
||||
- fix `batchUpdate`/`commit` (Thank to @radiolips)
|
||||
|
||||
#### v0.2.4 (2016-02-15)
|
||||
|
||||
|
|
|
|||
7
dist/gridstack.js
vendored
7
dist/gridstack.js
vendored
|
|
@ -131,8 +131,8 @@
|
|||
};
|
||||
|
||||
GridStackEngine.prototype.commit = function() {
|
||||
this._updateCounter = 0;
|
||||
if (this._updateCounter === 0) {
|
||||
if (this._updateCounter !== 0) {
|
||||
this._updateCounter = 0;
|
||||
this.float = this._float;
|
||||
this._packNodes();
|
||||
this._notify();
|
||||
|
|
@ -269,6 +269,9 @@
|
|||
};
|
||||
|
||||
GridStackEngine.prototype.cleanNodes = function() {
|
||||
if (this._updateCounter) {
|
||||
return;
|
||||
}
|
||||
_.each(this.nodes, function(n) {n._dirty = false; });
|
||||
};
|
||||
|
||||
|
|
|
|||
2
dist/gridstack.min.js
vendored
2
dist/gridstack.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/gridstack.min.map
vendored
2
dist/gridstack.min.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -131,8 +131,8 @@
|
|||
};
|
||||
|
||||
GridStackEngine.prototype.commit = function() {
|
||||
this._updateCounter = 0;
|
||||
if (this._updateCounter === 0) {
|
||||
if (this._updateCounter !== 0) {
|
||||
this._updateCounter = 0;
|
||||
this.float = this._float;
|
||||
this._packNodes();
|
||||
this._notify();
|
||||
|
|
@ -269,6 +269,9 @@
|
|||
};
|
||||
|
||||
GridStackEngine.prototype.cleanNodes = function() {
|
||||
if (this._updateCounter) {
|
||||
return;
|
||||
}
|
||||
_.each(this.nodes, function(n) {n._dirty = false; });
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue