Permalink
Browse files

Fix adjustsFontSizeToFit to only shrink, not grow, text

Reviewed By: shergin

Differential Revision: D6913407

fbshipit-source-id: 3fdeeee1a28917f623fc9f804c1b28216cba5375
  • Loading branch information...
sahrens authored and facebook-github-bot committed Feb 7, 2018
1 parent 6c38972 commit 8a882fe6d6bb35776551eb8b0cd6892f41cab492
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Text/Text/RCTTextShadowView.m
@@ -225,7 +225,7 @@ - (NSTextStorage *)textStorageAndLayoutManagerThatFitsSize:(CGSize)size
MAX(_minimumFontScale * (self.textAttributes.effectiveFont.pointSize), 4.0);
[textStorage scaleFontSizeToFitSize:size
minimumFontSize:minimumFontSize
maximumFontSize:72.0];
maximumFontSize:self.textAttributes.effectiveFont.pointSize];
}
if (!exclusiveOwnership) {

0 comments on commit 8a882fe

Please sign in to comment.