Searched refs:listHeight (Results 1 - 4 of 4) sorted by relevance
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | dialog_layout_algorithm.cpp | 166 float listHeight = 0.0f; in AnalysisHeightOfChild() local 180 listHeight = grandson->GetGeometryNode()->GetMarginFrameSize().Height(); in AnalysisHeightOfChild() 192 Distribute(scrollHeight, listHeight, restHeight); in AnalysisHeightOfChild() 195 childConstraint = CreateDialogChildConstraint(layoutWrapper, listHeight, restWidth); in AnalysisHeightOfChild() 206 CreateDialogChildConstraint(layoutWrapper, std::min(restHeight, listHeight), restWidth); 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() 246 listHeight = restHeight / 2.0; in Distribute() 248 scrollHeight = restHeight - listHeight; in Distribute() [all...] |
H A D | dialog_layout_algorithm.h | 58 void Distribute(float& scrollHeight, float& listHeight, float restHeight);
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_list.cpp | 306 int16_t listHeight = GetHeight(); in DragYInner() local 329 listHeight - scrollBlankSize_ - reboundSize) { in DragYInner() 332 distance) <= (listHeight - scrollBlankSize_ - reboundSize)) { in DragYInner() 333 distance = listHeight - scrollBlankSize_ - reboundSize - childrenTail_->GetRelativeRect().GetBottom() - in DragYInner()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/ |
H A D | dialog_test_ng.cpp | 1472 float scrollHeight = 10.0f, listHeight = 10.0f, restHeight = 4.0f; in HWTEST_F() local 1473 algorithm.Distribute(scrollHeight, listHeight, restHeight); in HWTEST_F() 1475 scrollHeight = 10.0f, listHeight = 0.0f; in HWTEST_F() 1476 algorithm.Distribute(scrollHeight, listHeight, restHeight); in HWTEST_F() 1478 scrollHeight = 0.0f, listHeight = 10.0f; in HWTEST_F() 1479 algorithm.Distribute(scrollHeight, listHeight, restHeight); in HWTEST_F() 1480 EXPECT_EQ(listHeight, 4.0f); in HWTEST_F() 1481 scrollHeight = 0.0f, listHeight = 0.0f; in HWTEST_F() 1482 algorithm.Distribute(scrollHeight, listHeight, restHeight); in HWTEST_F() 1483 EXPECT_EQ(listHeight, 0. in HWTEST_F() [all...] |
Completed in 7 milliseconds