!38234 【Refresh】Refresh组件配置align属性,刷新动效异常

Merge pull request !38234 from Zhang Jinyu/refresh_notsupport_align
This commit is contained in:
openharmony_ci 2024-07-22 14:00:08 +00:00 committed by Gitee
commit 864e105433
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -117,10 +117,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>();