!47605 对缓存节点和非缓存节点使用相同规则补全当前行

Merge pull request !47605 from 李俊峰/fill_current_line
This commit is contained in:
openharmony_ci 2024-11-04 15:26:13 +00:00 committed by Gitee
commit 4b99bfd49e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1919,7 +1919,7 @@ float GridScrollLayoutAlgorithm::FillNewCacheLineBackward(
}
}
auto currentIndex = info_.endIndex_ + 1;
for (uint32_t i = (line->second.empty() ? 0 : line->second.rbegin()->first); i < crossCount_ - 1; i++) {
for (uint32_t i = (line->second.empty() ? 0 : line->second.rbegin()->first); i < crossCount_; i++) {
// Step1. Get wrapper of [GridItem]
auto itemWrapper = layoutWrapper->GetChildByIndex(currentIndex, true);
if (!itemWrapper || itemWrapper->CheckNeedForceMeasureAndLayout()) {