fix 修修正refresh Refresh组件配置align属性,刷新动效异常

Signed-off-by: Zhang Jinyu <zhangjinyu101@huawei.com>
This commit is contained in:
Zhang Jinyu 2024-07-19 15:41:27 +08:00
parent ae30ffb8db
commit e7dd573e82

View File

@ -110,10 +110,7 @@ void RefreshLayoutAlgorithm::PerformLayout(LayoutWrapper* layoutWrapper)
auto left = padding.left.value_or(0);
auto top = padding.top.value_or(0);
auto paddingOffset = OffsetF(left, top);
auto align = Alignment::TOP_LEFT;
if (layoutProperty->GetPositionProperty()) {
align = layoutProperty->GetPositionProperty()->GetAlignment().value_or(align);
}
auto align = Alignment::TOP_CENTER;
auto host = layoutWrapper->GetHostNode();
CHECK_NULL_VOID(host);
auto pattern = host->GetPattern<RefreshPattern>();