File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1037,9 +1037,9 @@ static void YGNodeComputeFlexBasisForChild(const YGNodeRef node,
1037
1037
childHeightMeasureMode = YGMeasureModeUndefined;
1038
1038
1039
1039
const float marginRow =
1040
- node ->getMarginForAxis (YGFlexDirectionRow, parentWidth);
1040
+ child ->getMarginForAxis (YGFlexDirectionRow, parentWidth);
1041
1041
const float marginColumn =
1042
- node ->getMarginForAxis (YGFlexDirectionColumn, parentWidth);
1042
+ child ->getMarginForAxis (YGFlexDirectionColumn, parentWidth);
1043
1043
1044
1044
if (isRowStyleDimDefined) {
1045
1045
childWidth =
@@ -2624,9 +2624,8 @@ static void YGNodelayoutImpl(const YGNodeRef node,
2624
2624
}
2625
2625
if (child->getStyle ().positionType == YGPositionTypeAbsolute) {
2626
2626
// If the child is absolutely positioned and has a
2627
- // top/left/bottom/right
2628
- // set, override all the previously computed positions to set it
2629
- // correctly.
2627
+ // top/left/bottom/right set, override
2628
+ // all the previously computed positions to set it correctly.
2630
2629
const bool isChildLeadingPosDefined =
2631
2630
child->isLeadingPositionDefined (crossAxis);
2632
2631
if (isChildLeadingPosDefined) {
You can’t perform that action at this time.
0 commit comments