Fix adjustsFontSizeToFit to only shrink, not grow, text

Reviewed By: shergin

Differential Revision: D6913407

fbshipit-source-id: 3fdeeee1a28917f623fc9f804c1b28216cba5375
This commit is contained in:
Spencer Ahrens 2018-02-06 20:53:14 -08:00 committed by Facebook Github Bot
parent 6c38972327
commit 8a882fe6d6
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@
MAX(_minimumFontScale * (self.textAttributes.effectiveFont.pointSize), 4.0);
[textStorage scaleFontSizeToFitSize:size
minimumFontSize:minimumFontSize
maximumFontSize:72.0];
maximumFontSize:self.textAttributes.effectiveFont.pointSize];
}
if (!exclusiveOwnership) {