From c84040792590987ece1a3907fe7efb1c96e6ff07 Mon Sep 17 00:00:00 2001 From: shihongjie Date: Fri, 22 Nov 2024 10:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DlistitemGroup=E6=87=92?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E4=B8=8B=E5=8D=A1=E7=89=87=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=B1=85=E4=B8=AD=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shihongjie Change-Id: I0de49b4487e9b0fb2688612be04c7e449a6c1c4b --- .../pattern/list/list_item_group_layout_algorithm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/core/components_ng/pattern/list/list_item_group_layout_algorithm.cpp b/frameworks/core/components_ng/pattern/list/list_item_group_layout_algorithm.cpp index 40d38cf9082..ad8b836d44c 100644 --- a/frameworks/core/components_ng/pattern/list/list_item_group_layout_algorithm.cpp +++ b/frameworks/core/components_ng/pattern/list/list_item_group_layout_algorithm.cpp @@ -75,6 +75,7 @@ void ListItemGroupLayoutAlgorithm::Measure(LayoutWrapper* layoutWrapper) auto maxWidth = GetListItemGroupMaxWidth(contentConstraint.parentIdealSize, layoutProperty) - layoutProperty->CreatePaddingAndBorder().Width(); contentIdealSize.SetCrossSize(maxWidth, axis_); + listLayoutProperty_->UpdateListItemAlign(V2::ListItemAlign::CENTER); } UpdateListItemConstraint(contentIdealSize, childLayoutConstraint_); referencePos_ = UpdateReferencePos(layoutProperty, forwardLayout_, referencePos_);