Browse Source

Merge pull request #204460 in DEC/fineui from release/11.0 to feature/x

* commit '218c31052afd641694bbfb3bdb516055bb7d3a1f':
  BI-115750 组件左侧维度栏,一滚动,就会白屏
research/test
superman 2 years ago
parent
commit
ac63126f46
  1. 5
      src/base/list/listview.js
  2. 5
      src/base/list/virtualgrouplist.js
  3. 5
      src/base/list/virtuallist.js

5
src/base/list/listview.js

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

5
src/base/list/virtualgrouplist.js

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

5
src/base/list/virtuallist.js

@ -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;

Loading…
Cancel
Save