Browse Source

Pull request #1373: Master

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'bf9fff134fc06648de85bd8f0d1c40d0436dde33':
  update
  update
master
guy 4 years ago
parent
commit
6e6f95741c
  1. 1
      src/base/list/listview.js
  2. 6
      src/base/list/virtuallist.js

1
src/base/list/listview.js

@ -105,7 +105,6 @@ BI.ListView = BI.inherit(BI.Widget, {
populate: function (items) {
if (items && this.options.items !== items) {
this.options.items = items;
this.restore();
}
this._populate(items);

6
src/base/list/virtuallist.js

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

Loading…
Cancel
Save