Browse Source

Merge branch 'master' of ssh://code.fineres.com:7999/~dailer/fineui

es6
zsmj 2 years ago
parent
commit
3f486872d7
  1. 2
      package.json
  2. 5
      src/base/list/listview.js
  3. 5
      src/base/list/virtualgrouplist.js
  4. 5
      src/base/list/virtuallist.js

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20221102175548", "version": "2.0.20221102185525",
"description": "fineui", "description": "fineui",
"main": "dist/fineui_without_conflict.min.js", "main": "dist/fineui_without_conflict.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

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