Home
last modified time | relevance | path

Searched refs:scrollHeight (Results 1 - 8 of 8) sorted by relevance

/foundation/arkui/ui_lite/frameworks/components/
H A Dui_scroll_view.cpp231 int16_t scrollHeight = GetHeight(); in DragYInner() local
232 if (childBottom < scrollHeight - (scrollBlankSize_ + reboundSize)) { in DragYInner()
234 } else if (childBottom + distance < scrollHeight - (scrollBlankSize_ + reboundSize)) { in DragYInner()
235 distance = scrollHeight - (scrollBlankSize_ + reboundSize) - childBottom - 1; in DragYInner()
287 int16_t scrollHeight = GetHeight(); in CalculateReboundDistance() local
293 } else if (bottom < scrollHeight - 1) { in CalculateReboundDistance()
294 dragDistanceY = scrollHeight - scrollBlankSize_ - bottom - 1; in CalculateReboundDistance()
H A Dui_list.cpp835 int16_t scrollHeight = GetHeight(); in CalculateReboundDistance() local
846 if (bottom < (scrollHeight - scrollBlankSize_ - 1)) { in CalculateReboundDistance()
847 if ((dragDistanceY + bottom) < (scrollHeight - scrollBlankSize_ - reboundSize_ - 1)) { in CalculateReboundDistance()
850 dragDistanceY += scrollHeight - scrollBlankSize_ - 1 - (bottom + dragDistanceY); in CalculateReboundDistance()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_algorithm.cpp165 float scrollHeight = 0.0f; in AnalysisHeightOfChild() local
177 scrollHeight = grandson->GetGeometryNode()->GetMarginFrameSize().Height(); in AnalysisHeightOfChild()
192 Distribute(scrollHeight, listHeight, restHeight); in AnalysisHeightOfChild()
193 auto childConstraint = CreateDialogChildConstraint(layoutWrapper, scrollHeight, restWidth); in AnalysisHeightOfChild()
200 CreateDialogChildConstraint(layoutWrapper, std::min(restHeight, scrollHeight), restWidth); in AnalysisHeightOfChild()
201 UpdateIsScrollHeightNegative(layoutWrapper, std::min(restHeight, scrollHeight)); in AnalysisHeightOfChild()
241 void DialogLayoutAlgorithm::Distribute(float& scrollHeight, float& listHeight, float restHeight) in Distribute() argument
243 if (scrollHeight + listHeight > restHeight) { in Distribute()
244 if (scrollHeight > restHeight / 2.0 && listHeight > restHeight / 2.0) { in Distribute()
245 scrollHeight in Distribute()
[all...]
H A Ddialog_layout_algorithm.h58 void Distribute(float& scrollHeight, float& listHeight, float restHeight);
/foundation/arkui/ace_engine/frameworks/core/components/option/
H A Drender_option.cpp479 auto scrollHeight = scroll->GetLayoutSize().Height(); in AdjustScrollPosition() local
483 if (scrollHeight < optionHeight) { in AdjustScrollPosition()
485 scroll->JumpToPosition(center - scrollHeight / 2.0); in AdjustScrollPosition()
493 pos = optionBottom + optionHeight - scrollHeight; in AdjustScrollPosition()
497 if (pos <= optionTop && optionBottom <= pos + scrollHeight) { in AdjustScrollPosition()
507 scroll->JumpToPosition(optionBottom - scrollHeight); in AdjustScrollPosition()
/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/
H A Ddialog_test_ng.cpp1472 float scrollHeight = 10.0f, listHeight = 10.0f, restHeight = 4.0f; in HWTEST_F() local
1473 algorithm.Distribute(scrollHeight, listHeight, restHeight); in HWTEST_F()
1474 EXPECT_EQ(scrollHeight, 2.0f); in HWTEST_F()
1475 scrollHeight = 10.0f, listHeight = 0.0f; in HWTEST_F()
1476 algorithm.Distribute(scrollHeight, listHeight, restHeight); in HWTEST_F()
1477 EXPECT_EQ(scrollHeight, 4.0f); in HWTEST_F()
1478 scrollHeight = 0.0f, listHeight = 10.0f; in HWTEST_F()
1479 algorithm.Distribute(scrollHeight, listHeight, restHeight); in HWTEST_F()
1481 scrollHeight = 0.0f, listHeight = 0.0f; in HWTEST_F()
1482 algorithm.Distribute(scrollHeight, listHeigh in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dsub_menu_layout_algorithm.cpp159 auto scrollHeight = scrollGeometryNode->GetFrameSize().Height(); in GetSubMenuPosition() local
160 auto bottomOffset = scrollTop + scrollHeight; in GetSubMenuPosition()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_presentation_pattern.cpp1042 auto scrollHeight = height - operationHeight - resizeDecreasedHeight_; in ChangeScrollHeight() local
1047 scrollHeight = sheetHeight - operationHeight - resizeDecreasedHeight_; in ChangeScrollHeight()
1049 scrollProps->UpdateUserDefinedIdealSize(CalcSize(std::nullopt, CalcLength(scrollHeight))); in ChangeScrollHeight()
1939 auto scrollHeight = scroll->GetGeometryNode() ? scroll->GetGeometryNode()->GetFrameSize().Height() : .0f; in GetSheetTypeWithAuto() local
1941 if (scrollHeight - height <= childHeight) { in GetSheetTypeWithAuto()
1951 scrollHeight_ = scrollHeight - childHeight + height; in GetSheetTypeWithAuto()
1953 CalcSize(std::nullopt, CalcLength(GetScrollHeight() - (scrollHeight - childHeight + height)))); in GetSheetTypeWithAuto()

Completed in 13 milliseconds