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