mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 23:21:05 +00:00
fix 修修正refresh Refresh组件配置align属性,刷新动效异常
Signed-off-by: Zhang Jinyu <zhangjinyu101@huawei.com>
This commit is contained in:
parent
ae30ffb8db
commit
e7dd573e82
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user