mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 23:21:05 +00:00
!47605 对缓存节点和非缓存节点使用相同规则补全当前行
Merge pull request !47605 from 李俊峰/fill_current_line
This commit is contained in:
commit
4b99bfd49e
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user