Skip to content

Commit 8a882fe

Browse files
sahrensfacebook-github-bot
authored andcommitted
Fix adjustsFontSizeToFit to only shrink, not grow, text
Reviewed By: shergin Differential Revision: D6913407 fbshipit-source-id: 3fdeeee1a28917f623fc9f804c1b28216cba5375
1 parent 6c38972 commit 8a882fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Text/Text/RCTTextShadowView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ - (NSTextStorage *)textStorageAndLayoutManagerThatFitsSize:(CGSize)size
225225
MAX(_minimumFontScale * (self.textAttributes.effectiveFont.pointSize), 4.0);
226226
[textStorage scaleFontSizeToFitSize:size
227227
minimumFontSize:minimumFontSize
228-
maximumFontSize:72.0];
228+
maximumFontSize:self.textAttributes.effectiveFont.pointSize];
229229
}
230230

231231
if (!exclusiveOwnership) {

0 commit comments

Comments
 (0)