Browse Source

Merge pull request #256029 in DEC/fineui from master to feature/x

* commit '0eed001a05c2f5d81e288c4b066abbbe63f11680':
  BI-138976 fix: 在init中计算
research/test
superman 6 months ago
parent
commit
9f9002da12
  1. 4
      packages/fineui/src/base/list/virtualgrouplist.js

4
packages/fineui/src/base/list/virtualgrouplist.js

@ -25,6 +25,7 @@ export class VirtualGroupList extends Widget {
}
init() {
this._calculateSummaryHeight();
this.renderedIndex = -1;
}
@ -44,7 +45,7 @@ export class VirtualGroupList extends Widget {
},
{
type: VirtualGroup.xtype,
height: rowHeight * items.length,
height: this.summaryHeight,
ref: (ref) => {
this.container = ref;
},
@ -77,7 +78,6 @@ export class VirtualGroupList extends Widget {
this.populate(newValue);
})
: o.items;
this._calculateSummaryHeight();
this._populate();
this.ticking = false;
this.element.scroll(() => {

Loading…
Cancel
Save