修复listitemGroup懒加载下卡片样式居中失效的问题

Signed-off-by: shihongjie <shihongjie@huawei.com>
Change-Id: I0de49b4487e9b0fb2688612be04c7e449a6c1c4b
This commit is contained in:
shihongjie 2024-11-22 10:28:20 +08:00
parent a138fe37d0
commit c840407925

View File

@ -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_);