|
|
@ -132,9 +132,8 @@ BI.VirtualList = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
this.container.element.prepend(firstFragment); |
|
|
|
this.container.element.prepend(firstFragment); |
|
|
|
this.container.element.append(lastFragment); |
|
|
|
this.container.element.append(lastFragment); |
|
|
|
this.topBlank.setHeight(this.cache[start < 0 ? 0 : start].scrollTop); |
|
|
|
this.topBlank.setHeight(this.tree.sumTo(Math.max(-1, start - 1))); |
|
|
|
var lastCache = this.cache[Math.min(end, this.renderedIndex)]; |
|
|
|
this.bottomBlank.setHeight(this.tree.sumTo(this.renderedIndex) - this.tree.sumTo(Math.min(end, this.renderedIndex))); |
|
|
|
this.bottomBlank.setHeight(this.tree.sumTo(this.renderedIndex) - lastCache.scrollTop - lastCache.height); |
|
|
|
|
|
|
|
BI.each(needDestroyed, function (i, child) { |
|
|
|
BI.each(needDestroyed, function (i, child) { |
|
|
|
child && child._destroy(); |
|
|
|
child && child._destroy(); |
|
|
|
}); |
|
|
|
}); |
|
|
|