mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Text Measuring: Using unlimited height during text measuring
Summary: In the previous diff, we noted that the maximum height is not really important for text measurement. That diff make is in code. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D18848585 fbshipit-source-id: 5fe0ea8f76487a50baa8a2e024663a85afcd9861
This commit is contained in:
committed by
Facebook Github Bot
parent
c9b9c93c90
commit
1a12919dea
@@ -43,8 +43,8 @@ static NSLineBreakMode RCTNSLineBreakModeFromEllipsizeMode(EllipsizeMode ellipsi
|
||||
return {0, 0};
|
||||
}
|
||||
|
||||
CGSize maximumSize = CGSize{layoutConstraints.maximumSize.width,
|
||||
layoutConstraints.maximumSize.height};
|
||||
CGSize maximumSize = CGSize{layoutConstraints.maximumSize.width, CGFLOAT_MAX};
|
||||
|
||||
NSTextStorage *textStorage = [self _textStorageAndLayoutManagerWithAttributesString:attributedString
|
||||
paragraphAttributes:paragraphAttributes
|
||||
size:maximumSize];
|
||||
|
||||
Reference in New Issue
Block a user