Skip to content

Commit

Permalink
Allow specific border width styling
Browse files Browse the repository at this point in the history
Summary:
ahmedre, is this in accordance to what you mentioned in comment facebook#11042 (comment) ?

fixes facebook#11042

NO TEST PLAN AS OF YET! NOT READY.

I am going to attempt to show this in my current application today.
Closes facebook#11706

Differential Revision: D4494439

Pulled By: mkonicek

fbshipit-source-id: 2e1ee4c4a8347ddb29ee28bafe5ca5f7b6c04317
  • Loading branch information
awitherow authored and maarf committed Apr 26, 2017
1 parent 7bd5d6c commit bd1d335
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void draw(Canvas canvas) {
boolean roundedBorders = mBorderCornerRadii != null ||
(!YogaConstants.isUndefined(mBorderRadius) && mBorderRadius > 0);

if ((mBorderStyle == null || mBorderStyle == BorderStyle.SOLID) && !roundedBorders) {
if (!roundedBorders) {
drawRectangularBackgroundWithBorders(canvas);
} else {
drawRoundedBackgroundWithBorders(canvas);
Expand Down

0 comments on commit bd1d335

Please sign in to comment.