We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e4773f commit 5479eacCopy full SHA for 5479eac
1 file changed
yoga/style/Style.h
@@ -658,6 +658,8 @@ class YG_EXPORT Style {
658
FlexDirection axis,
659
float widthSize,
660
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
663
return computeInlineStartMargin(axis, Direction::LTR, widthSize, node) +
664
computeInlineEndMargin(axis, Direction::LTR, widthSize, node);
665
}
0 commit comments