Skip to content

Commit

Permalink
Fix adjustsFontSizeToFit to only shrink, not grow, text
Browse files Browse the repository at this point in the history
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 8a882fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Text/Text/RCTTextShadowView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8a882fe

Please sign in to comment.