Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_with_options_layout_algorithm.cpp92 int32_t crossGridReserve = gridLayoutInfo_.crossCount_; in GetTargetIndexInfoWithBenchMark() local
94 while ((crossGridReserve > 0) && (currentIndex <= targetIndex)) { in GetTargetIndexInfoWithBenchMark()
97 if (crossGridReserve >= gridSpan) { in GetTargetIndexInfoWithBenchMark()
98 crossGridReserve -= gridSpan; in GetTargetIndexInfoWithBenchMark()
102 crossGridReserve = gridLayoutInfo_.crossCount_ - gridSpan; in GetTargetIndexInfoWithBenchMark()
H A Dgrid_scroll_layout_algorithm.cpp816 int32_t crossGridReserve = gridLayoutInfo_.crossCount_; in GetTargetIndexInfoWithBenchMark() local
818 while ((crossGridReserve > 0) && (currentIndex <= targetIndex)) { in GetTargetIndexInfoWithBenchMark()
824 if (crossGridReserve >= gridSpan) { in GetTargetIndexInfoWithBenchMark()
825 crossGridReserve -= gridSpan; in GetTargetIndexInfoWithBenchMark()
829 crossGridReserve = gridLayoutInfo_.crossCount_ - gridSpan; in GetTargetIndexInfoWithBenchMark()