|
|
@ -93,6 +93,11 @@ BI.VirtualList = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_calculateBlocksToRender: function () { |
|
|
|
_calculateBlocksToRender: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
// BI-115750 不可见状态下依赖元素实际尺寸构造的线段树会分段错误,所以不进行后续计算和线段树的初始化。
|
|
|
|
|
|
|
|
// 这样从不可见状态变为可见状态能够重新触发线段树初始化
|
|
|
|
|
|
|
|
if (!this.element.is(":visible")) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
this._renderMoreIf(); |
|
|
|
this._renderMoreIf(); |
|
|
|
var height = this.element.height(); |
|
|
|
var height = this.element.height(); |
|
|
|
var minContentHeightFrom = o.scrollTop - o.overscanHeight; |
|
|
|
var minContentHeightFrom = o.scrollTop - o.overscanHeight; |
|
|
|