Skip to content

Commit 5479eac

Browse files
committed
fix: restore accidentally dropped comment
1 parent 5e4773f commit 5479eac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

yoga/style/Style.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ class YG_EXPORT Style {
658658
FlexDirection axis,
659659
float widthSize,
660660
YGNodeConstRef node) const {
661+
// The total margin for a given axis does not depend on the direction
662+
// so hardcoding LTR here to avoid piping direction to this function
661663
return computeInlineStartMargin(axis, Direction::LTR, widthSize, node) +
662664
computeInlineEndMargin(axis, Direction::LTR, widthSize, node);
663665
}

0 commit comments

Comments
 (0)