code review changes

This commit is contained in:
Lukas Woehrl
2017-01-05 22:03:17 +01:00
parent 0a708e18c0
commit 9e44f0f4d4
2 changed files with 3 additions and 3 deletions

View File

@@ -1025,6 +1025,7 @@ static bool YGIsBaselineLayout(const YGNodeRef node) {
return true;
}
}
return false;
}
@@ -2575,9 +2576,9 @@ static void YGNodelayoutImpl(const YGNodeRef node,
break;
}
case YGAlignBaseline: {
child->layout.position[pos[crossAxis]] =
child->layout.position[YGEdgeTop] =
currentLead + maxAscentForCurrentLine - YGBaseline(child) +
YGNodeLeadingPosition(child, crossAxis, availableInnerCrossDim);
YGNodeLeadingPosition(child, YGFlexDirectionColumn, availableInnerCrossDim);
break;
}
case YGAlignAuto:

View File

@@ -50,7 +50,6 @@ typedef YGSize (*YGMeasureFunc)(YGNodeRef node,
float height,
YGMeasureMode heightMode);
typedef float (*YGBaselineFunc)(YGNodeRef node);
typedef void (*YGPrintFunc)(YGNodeRef node);
typedef int (*YGLogger)(YGLogLevel level, const char *format, va_list args);