Baseline support #317
@@ -1015,6 +1015,9 @@ static inline bool YGNodeIsFlex(const YGNodeRef node) {
|
|||||||
}
|
}
|
||||||
|
|||||||
|
|
||||||
static bool YGIsBaselineLayout(const YGNodeRef node) {
|
static bool YGIsBaselineLayout(const YGNodeRef node) {
|
||||||
|
if (YGFlexDirectionIsColumn(node->style.flexDirection)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (node->style.alignItems == YGAlignBaseline) {
|
if (node->style.alignItems == YGAlignBaseline) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user
nit: empty line above
Please add this 👍
not sure what you mean, should I add a empty line above
return false
?