Skip to content

Commit

Permalink
When resolving borders, respect leading/trailing semantics before lef…
Browse files Browse the repository at this point in the history
…t/right

Summary:
Changelog: [Internal]

When resolving borders, leading/trailing semantics should take priority over left/right.

Reviewed By: shergin

Differential Revision: D20422951

fbshipit-source-id: 7a464c88f881a77732929a155aaa9b2e150bba74
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Mar 17, 2020
1 parent 71c7e80 commit 48fe460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReactCommon/fabric/components/view/primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ struct CascadedRectangleCorners {
/* .topRight = */
topRight.value_or(topTrailing.value_or(all.value_or(defaults))),
/* .bottomLeft = */
bottomLeft.value_or(topLeading.value_or(all.value_or(defaults))),
bottomLeft.value_or(bottomLeading.value_or(all.value_or(defaults))),
/* .bottomRight = */
bottomRight.value_or(topTrailing.value_or(all.value_or(defaults))),
bottomRight.value_or(bottomTrailing.value_or(all.value_or(defaults))),
};
}

Expand Down

0 comments on commit 48fe460

Please sign in to comment.