From fd728117a276e3a7d99790629b3811686aff9f34 Mon Sep 17 00:00:00 2001 From: Kobi Date: Thu, 23 Nov 2023 15:39:09 +0800 Subject: [PATCH] =?UTF-8?q?BI-138976=20fix:=20=E5=9C=A8init=E4=B8=AD?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 6f04b657839f5640fbb51e07a1d639cbe3e7babc) --- packages/fineui/src/base/list/virtualgrouplist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/base/list/virtualgrouplist.js b/packages/fineui/src/base/list/virtualgrouplist.js index 143c867fa..862de946d 100644 --- a/packages/fineui/src/base/list/virtualgrouplist.js +++ b/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(() => {