Skip to content

Commit

Permalink
Rename ambiguous getLeading/Trailing... functions in Node.cpp (facebo…
Browse files Browse the repository at this point in the history
…ok#41018)

Summary:
Pull Request resolved: facebook#41018

X-link: facebook/yoga#1424

See D50344874

Reviewed By: NickGerleman

Differential Revision: D50344874

fbshipit-source-id: 32fc35df674eb854c682a5e387c031a94c1c4f68
  • Loading branch information
joevilches authored and Othinn committed Oct 30, 2023
1 parent f6bfa69 commit 3a777a2
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 124 deletions.
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 3a777a2

Please sign in to comment.