Skip to content

Commit

Permalink
Reverted commit D3417257
Browse files Browse the repository at this point in the history
Summary:
First PR!!

This fixes #2991 :)
Closes #7603

Differential Revision: D3417257

Pulled By: bestander

fbshipit-source-id: fca990a973edaf7bae5481d03f5da5de0c085c16
  • Loading branch information
tuckerconnelly authored and Facebook Github Bot 1 committed Jun 10, 2016
1 parent 7df2af5 commit 4f4b6d4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Libraries/Text/RCTShadowText.m
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,6 @@ - (void)_setParagraphStyleOnAttributedString:(NSMutableAttributedString *)attrib
}
paragraphStyle.minimumLineHeight = lineHeight;
paragraphStyle.maximumLineHeight = lineHeight;

// vertically center text
CGFloat fontSize = _fontSize && !isnan(_fontSize) ? _fontSize : UIFont.systemFontSize;
fontSize *= fontSizeMultiplier;

[attributedString addAttribute:NSBaselineOffsetAttributeName
value:@(lineHeight/2 - fontSize/2)
range:(NSRange){0, attributedString.length}];
[attributedString addAttribute:NSParagraphStyleAttributeName
value:paragraphStyle
range:(NSRange){0, attributedString.length}];
Expand Down

0 comments on commit 4f4b6d4

Please sign in to comment.