shortcut if node is column direction
This commit is contained in:
@@ -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