!36517 WaterFlow的footer显示不正常

Merge pull request !36517 from 李俊峰/footer_not_show
This commit is contained in:
openharmony_ci 2024-06-27 02:06:27 +00:00 committed by Gitee
commit fbde5fc7ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -251,8 +251,6 @@ void WaterFlowLayoutAlgorithm::Layout(LayoutWrapper* layoutWrapper)
}
}
layoutInfo_->firstIndex_ = firstIndex;
LayoutFooter(layoutWrapper, childFrameOffset, layoutProperty->IsReverse());
auto cachedCount = layoutProperty->GetCachedCountValue(1);
layoutWrapper->SetActiveChildRange(layoutInfo_->NodeIdx(layoutInfo_->FirstIdx()),
layoutInfo_->NodeIdx(layoutInfo_->endIndex_), cachedCount, cachedCount);
@ -260,6 +258,8 @@ void WaterFlowLayoutAlgorithm::Layout(LayoutWrapper* layoutWrapper)
WaterFlowLayoutUtils::CreateChildConstraint(
{ itemsCrossPosition_.find(0)->second, mainSize_, axis_ }, layoutProperty, nullptr),
cachedCount);
LayoutFooter(layoutWrapper, childFrameOffset, layoutProperty->IsReverse());
}
void WaterFlowLayoutAlgorithm::LayoutFooter(LayoutWrapper* layoutWrapper, const OffsetF& childFrameOffset, bool reverse)