Skip to content

Commit 3f8db72

Browse files
committed
fix: restore accidentally dropped comment
1 parent ed48c06 commit 3f8db72

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
@@ -639,6 +639,8 @@ class YG_EXPORT Style {
639639
FlexDirection axis,
640640
float widthSize,
641641
YGNodeConstRef node) const {
642+
// The total margin for a given axis does not depend on the direction
643+
// so hardcoding LTR here to avoid piping direction to this function
642644
return computeInlineStartMargin(axis, Direction::LTR, widthSize, node) +
643645
computeInlineEndMargin(axis, Direction::LTR, widthSize, node);
644646
}

0 commit comments

Comments
 (0)