mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
修复listitemGroup懒加载下卡片样式居中失效的问题
Signed-off-by: shihongjie <shihongjie@huawei.com> Change-Id: I0de49b4487e9b0fb2688612be04c7e449a6c1c4b
This commit is contained in:
parent
a138fe37d0
commit
c840407925
@ -75,6 +75,7 @@ void ListItemGroupLayoutAlgorithm::Measure(LayoutWrapper* layoutWrapper)
|
|||||||
auto maxWidth = GetListItemGroupMaxWidth(contentConstraint.parentIdealSize, layoutProperty) -
|
auto maxWidth = GetListItemGroupMaxWidth(contentConstraint.parentIdealSize, layoutProperty) -
|
||||||
layoutProperty->CreatePaddingAndBorder().Width();
|
layoutProperty->CreatePaddingAndBorder().Width();
|
||||||
contentIdealSize.SetCrossSize(maxWidth, axis_);
|
contentIdealSize.SetCrossSize(maxWidth, axis_);
|
||||||
|
listLayoutProperty_->UpdateListItemAlign(V2::ListItemAlign::CENTER);
|
||||||
}
|
}
|
||||||
UpdateListItemConstraint(contentIdealSize, childLayoutConstraint_);
|
UpdateListItemConstraint(contentIdealSize, childLayoutConstraint_);
|
||||||
referencePos_ = UpdateReferencePos(layoutProperty, forwardLayout_, referencePos_);
|
referencePos_ = UpdateReferencePos(layoutProperty, forwardLayout_, referencePos_);
|
||||||
|
Loading…
Reference in New Issue
Block a user