mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Revert D44307457: fix: make cursor center for different line height
Differential Revision: D44307457 Original commit changeset: afeea5605ed8 Original Phabricator Diff: D44307457 fbshipit-source-id: 71423b895fb541584a322129e05223c8af7c4886
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8c9c8ba5ad
commit
ebc97a6c0f
@@ -298,12 +298,7 @@ static UIColor *defaultPlaceholderColor()
|
||||
return CGRectZero;
|
||||
}
|
||||
|
||||
CGRect rect = [super caretRectForPosition:position];
|
||||
UIFont *font = self.font;
|
||||
float prevHeight = rect.size.height;
|
||||
rect.size.height = font.pointSize - font.descender;
|
||||
rect.origin.y += (prevHeight - rect.size.height);
|
||||
return rect;
|
||||
return [super caretRectForPosition:position];
|
||||
}
|
||||
|
||||
#pragma mark - Utility Methods
|
||||
|
||||
Reference in New Issue
Block a user