Fix adjustsFontSizeToFit to only shrink, not grow, text
Reviewed By: shergin Differential Revision: D6913407 fbshipit-source-id: 3fdeeee1a28917f623fc9f804c1b28216cba5375
This commit is contained in:
parent
6c38972327
commit
8a882fe6d6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue