Skip to content

Commit

Permalink
reintroduce check facebook#37465
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed May 20, 2024
1 parent 93c079b commit 176b1a6
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,12 @@ inline static CGFloat RCTEffectiveFontSizeMultiplierFromTextAttributes(const Tex

if (!isnan(textAttributes.lineHeight)) {
CGFloat lineHeight = textAttributes.lineHeight * RCTEffectiveFontSizeMultiplierFromTextAttributes(textAttributes);
paragraphStyle.minimumLineHeight = lineHeight;
paragraphStyle.maximumLineHeight = lineHeight;
isParagraphStyleUsed = YES;
UIFont *font = RCTEffectiveFontFromTextAttributes(textAttributes);
if (lineHeight > font.lineHeight) {
paragraphStyle.minimumLineHeight = lineHeight;
paragraphStyle.maximumLineHeight = lineHeight;
isParagraphStyleUsed = YES;
}
}

if (isParagraphStyleUsed) {
Expand Down

0 comments on commit 176b1a6

Please sign in to comment.