Browse Source

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

* commit '0eed001a05c2f5d81e288c4b066abbbe63f11680':
  BI-138976 fix: 在init中计算
research/test
superman 1 year 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() { init() {
this._calculateSummaryHeight();
this.renderedIndex = -1; this.renderedIndex = -1;
} }
@ -44,7 +45,7 @@ export class VirtualGroupList extends Widget {
}, },
{ {
type: VirtualGroup.xtype, type: VirtualGroup.xtype,
height: rowHeight * items.length, height: this.summaryHeight,
ref: (ref) => { ref: (ref) => {
this.container = ref; this.container = ref;
}, },
@ -77,7 +78,6 @@ export class VirtualGroupList extends Widget {
this.populate(newValue); this.populate(newValue);
}) })
: o.items; : o.items;
this._calculateSummaryHeight();
this._populate(); this._populate();
this.ticking = false; this.ticking = false;
this.element.scroll(() => { this.element.scroll(() => {

Loading…
Cancel
Save