Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TextInput vertical alignment issue when using lineHeight prop on iOS without changing Text baseline (Paper - old arch) #38359

Closed
Prev Previous commit
Next Next commit
removing frame.size.height logic
  • Loading branch information
fabOnReact committed Jul 15, 2023
commit a900804b0083c4fea0420b9e210c25891afd09b5
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ - (void)postprocessAttributedText:(NSMutableAttributedString *)attributedText
maximumLineHeight = MAX(paragraphStyle.maximumLineHeight, maximumLineHeight);
}];

CGFloat height = self.layoutMetrics.frame.size.height;
if (maximumLineHeight == 0 || maximumLineHeight > height) {
if (maximumLineHeight == 0) {
// `lineHeight` was not specified, nothing to do.
// or is higher then actual height
return;
Expand Down