We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45d346 commit 987c6fdCopy full SHA for 987c6fd
packages/react-native/Libraries/Text/TextInput/Multiline/RCTUITextView.m
@@ -298,7 +298,12 @@ - (CGRect)caretRectForPosition:(UITextPosition *)position
298
return CGRectZero;
299
}
300
301
- return [super caretRectForPosition:position];
+ CGRect rect = [super caretRectForPosition:position];
302
+ UIFont *font = self.font;
303
+ float prevHeight = rect.size.height;
304
+ rect.size.height = font.pointSize - font.descender;
305
+ rect.origin.y += (prevHeight - rect.size.height);
306
+ return rect;
307
308
309
#pragma mark - Utility Methods
0 commit comments