Reverted commit D3417257
Summary: First PR!! This fixes https://github.com/facebook/react-native/issues/2991 :) Closes https://github.com/facebook/react-native/pull/7603 Differential Revision: D3417257 Pulled By: bestander fbshipit-source-id: fca990a973edaf7bae5481d03f5da5de0c085c16
This commit is contained in:
parent
7df2af58c7
commit
4f4b6d467a
|
@ -376,14 +376,6 @@ static css_dim_t RCTMeasure(void *context, float width, css_measure_mode_t width
|
|||
}
|
||||
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}];
|
||||
|
|
Loading…
Reference in New Issue