do not lose scheduled changes when render is canceled
This commit is contained in:
parent
47b30f5db4
commit
73d8eb5898
1 changed files with 6 additions and 7 deletions
|
|
@ -335,7 +335,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
|
|
||||||
// }.bind(this), 500)
|
// }.bind(this), 500)
|
||||||
|
|
||||||
if (!this.$size.scrollerHeight)
|
if (!this.$size.scrollerHeight || (!width && !height))
|
||||||
return this.resizing = 0;
|
return this.resizing = 0;
|
||||||
|
|
||||||
if (force)
|
if (force)
|
||||||
|
|
@ -344,7 +344,7 @@ var VirtualRenderer = function(container, theme) {
|
||||||
if (force)
|
if (force)
|
||||||
this.$renderChanges(changes, true);
|
this.$renderChanges(changes, true);
|
||||||
else
|
else
|
||||||
this.$loop.schedule(changes);
|
this.$loop.schedule(changes || this.$changes);
|
||||||
|
|
||||||
if (this.resizing)
|
if (this.resizing)
|
||||||
this.resizing = 0;
|
this.resizing = 0;
|
||||||
|
|
@ -730,15 +730,14 @@ var VirtualRenderer = function(container, theme) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$renderChanges = function(changes, force) {
|
this.$renderChanges = function(changes, force) {
|
||||||
if ((!this.session || !this.container.offsetWidth) || (!changes && !force)) {
|
|
||||||
this.$changes |= changes;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (this.$changes) {
|
if (this.$changes) {
|
||||||
changes |= this.$changes;
|
changes |= this.$changes;
|
||||||
this.$changes = 0;
|
this.$changes = 0;
|
||||||
}
|
}
|
||||||
|
if ((!this.session || !this.container.offsetWidth) || (!changes && !force)) {
|
||||||
|
this.$changes |= changes;
|
||||||
|
return;
|
||||||
|
}
|
||||||
// this.$logChanges(changes);
|
// this.$logChanges(changes);
|
||||||
|
|
||||||
this._signal("beforeRender");
|
this._signal("beforeRender");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue