Baseline support #317

Closed
woehrl01 wants to merge 33 commits from baseline-support into master
14 changed files with 1020 additions and 2 deletions
Showing only changes of commit 09f347092b - Show all commits

View File

@@ -2580,9 +2580,9 @@ static void YGNodelayoutImpl(const YGNodeRef node,
break;
}
case YGAlignBaseline: {
child->layout.position[pos[crossAxis]] = currentLead
+ maxAscentForCurrentLine -
YGBaselineWithMargin(child, crossAxis, availableInnerWidth);;
child->layout.position[pos[crossAxis]] =
currentLead + maxAscentForCurrentLine -
YGBaselineWithMargin(child, crossAxis, availableInnerWidth);;
break;
}
case YGAlignAuto: