Home
last modified time | relevance | path

Searched refs:targetContent (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.cpp420 float targetContent = currentHeight_ - (currentOffset_ - prevOffset_); in SkipStartIndexByOffset() local
421 if (LessOrEqual(targetContent, 0.0)) { in SkipStartIndexByOffset()
448 if (GreatOrEqual(totalHeight, targetContent)) { in SkipStartIndexByOffset()
452 if (GreatOrEqual(totalHeight + height, targetContent)) { in SkipStartIndexByOffset()
459 int32_t lines = static_cast<int32_t>(std::floor((targetContent - totalHeight) / regularHeight)); in SkipStartIndexByOffset()
460 currentOffset_ = totalHeight + lines * regularHeight - targetContent; in SkipStartIndexByOffset()