We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed48c06 commit 3f8db72Copy full SHA for 3f8db72
1 file changed
yoga/style/Style.h
@@ -639,6 +639,8 @@ class YG_EXPORT Style {
639
FlexDirection axis,
640
float widthSize,
641
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
644
return computeInlineStartMargin(axis, Direction::LTR, widthSize, node) +
645
computeInlineEndMargin(axis, Direction::LTR, widthSize, node);
646
}
0 commit comments