MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isBaselineLayout

Function isBaselineLayout

third-party/yoga/src/yoga/algorithm/Baseline.cpp:61–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61bool isBaselineLayout(const yoga::Node* node) {
62 if (isColumn(node->style().flexDirection())) {
63 return false;
64 }
65 if (node->style().alignItems() == Align::Baseline) {
66 return true;
67 }
68 for (auto child : node->getLayoutChildren()) {
69 if (child->style().positionType() != PositionType::Absolute &&
70 child->style().alignSelf() == Align::Baseline) {
71 return true;
72 }
73 }
74
75 return false;
76}
77
78} // namespace facebook::yoga

Callers 2

justifyMainAxisFunction · 0.85
calculateLayoutImplFunction · 0.85

Calls 1

isColumnFunction · 0.85

Tested by

no test coverage detected