Skip to content

Commit

Permalink
Fabric: Fixed missing text on some views with borders
Browse files Browse the repository at this point in the history
Summary: Apparently, after updating CALayer props we have to request redrowing on top of it manually.

Reviewed By: mdvacca

Differential Revision: D10053340

fbshipit-source-id: f87311399bab809c9e13a3076f526bbe3f7f3fb4
  • Loading branch information
shergin authored and facebook-github-bot committed Sep 26, 2018
1 parent 84fbad6 commit d517214
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ - (void)invalidateLayer
layer.cornerRadius = cornerRadius;
layer.mask = maskLayer;
}

// After updating `layer`'s parameters we have to redraw on top of it
// all custom content (calling `drawRect:` implemented in subclasses).
[layer setNeedsDisplay];
}

#pragma mark - Accessibility
Expand Down

0 comments on commit d517214

Please sign in to comment.