Browse Source

Pull request #3006: 无JIRA fix: bug fix

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

* commit '3b57760726dd3cb2a75d1e2c76a46d1fb6627053':
  无JIRA fix: bug fix
es6
Dailer 2 years ago
parent
commit
9072baaa24
  1. 5
      src/base/list/listview.js

5
src/base/list/listview.js

@ -72,9 +72,11 @@ BI.ListView = BI.inherit(BI.Widget, {
var index = (this.cache[this.renderedIndex] && (this.cache[this.renderedIndex].index + o.blockSize)) || 0;
var cnt = this.renderedIndex + 1;
var lastHeight;
function getElementHeight () {
function getElementHeight() {
return self.container.element.height();
}
lastHeight = getElementHeight();
while ((lastHeight) < minContentHeight && index < o.items.length) {
var items = o.items.slice(index, index + o.blockSize);
@ -90,6 +92,7 @@ BI.ListView = BI.inherit(BI.Widget, {
this.renderedIndex = cnt;
cnt++;
index += o.blockSize;
lastHeight = getElementHeight();
}
},

Loading…
Cancel
Save