Home
last modified time | relevance | path

Searched refs:lengthOfItemsInViewport (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_layout_algorithm.cpp179 auto lengthOfItemsInViewport = gridLayoutInfo_.GetTotalHeightOfItemsInView(mainGap_); in AdaptToChildMainSize() local
180 auto gridMainSize = std::min(lengthOfItemsInViewport, mainSize); in AdaptToChildMainSize()
568 float lengthOfItemsInViewport = gridLayoutInfo_.GetTotalHeightOfItemsInView(mainGap_); in ModifyCurrentOffsetWhenReachEnd() local
575 if (LessNotEqual(lengthOfItemsInViewport, mainSize)) { in ModifyCurrentOffsetWhenReachEnd()
582 if (LessNotEqual(lengthOfItemsInViewport, mainSize) && gridLayoutInfo_.startIndex_ == 0) { in ModifyCurrentOffsetWhenReachEnd()
588 …tInfo_.offsetEnd_ = LessOrEqual(gridLayoutInfo_.currentOffset_ + lengthOfItemsInViewport, mainSize… in ModifyCurrentOffsetWhenReachEnd()
593 if (GreatNotEqual(gridLayoutInfo_.currentOffset_ + lengthOfItemsInViewport, mainSize)) { in ModifyCurrentOffsetWhenReachEnd()
607 float realOffsetToMoveUp = lengthOfItemsInViewport - mainSize + gridLayoutInfo_.prevOffset_; in ModifyCurrentOffsetWhenReachEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_irregular_layout_algorithm.cpp679 auto lengthOfItemsInViewport = info_.GetTotalHeightOfItemsInView(mainGap_); in AdaptToChildMainSize() local
680 auto gridMainSize = std::min(lengthOfItemsInViewport, mainSize); in AdaptToChildMainSize()