Skip to content

Commit

Permalink
Rename ambiguous getLeading/Trailing... functions in Node.cpp
Browse files Browse the repository at this point in the history
Differential Revision: D50344874

fbshipit-source-id: 488d592dfe6ea939c4fc8af36b7d9673083cd523
  • Loading branch information
Joe Vilches authored and facebook-github-bot committed Oct 17, 2023
1 parent eb14f80 commit 7ed0768
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 124 deletions.
4 changes: 2 additions & 2 deletions yoga/algorithm/BoundAxis.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ inline float paddingAndBorderForAxis(
const yoga::Node* const node,
const FlexDirection axis,
const float widthSize) {
return node->getLeadingPaddingAndBorder(axis, widthSize) +
node->getTrailingPaddingAndBorder(axis, widthSize);
return node->getFlexStartPaddingAndBorder(axis, widthSize) +
node->getFlexEndPaddingAndBorder(axis, widthSize);
}

inline FloatOptional boundAxisWithinMinAndMax(
Expand Down
Loading

0 comments on commit 7ed0768

Please sign in to comment.