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

Function resolveChildAlignment

third-party/yoga/src/yoga/algorithm/Align.h:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace facebook::yoga {
16
17inline Align resolveChildAlignment(
18 const yoga::Node* node,
19 const yoga::Node* child) {
20 const Align align = child->style().alignSelf() == Align::Auto
21 ? node->style().alignItems()
22 : child->style().alignSelf();
23
24 if (node->style().display() == Display::Flex && align == Align::Baseline &&
25 isColumn(node->style().flexDirection())) {
26 return Align::FlexStart;
27 }
28
29 return align;
30}
31
32inline Justify resolveChildJustification(
33 const yoga::Node* node,

Callers 5

computeFlexBasisForChildFunction · 0.85
calculateLayoutImplFunction · 0.85
calculateBaselineFunction · 0.85
alignAbsoluteChildFunction · 0.85

Calls 1

isColumnFunction · 0.85

Tested by

no test coverage detected