Skip to content

Commit

Permalink
Revert D44130814: reduce cursor size for multiline(TextInput)
Browse files Browse the repository at this point in the history
Differential Revision:
D44130814

Original commit changeset: 09d53ecee681

Original Phabricator Diff: D44130814

fbshipit-source-id: 33c6fac5cb1f48a6e2461ff81564075eec466fb8
  • Loading branch information
javache authored and facebook-github-bot committed Mar 22, 2023
1 parent ee76107 commit 8313f23
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,7 @@ - (CGRect)caretRectForPosition:(UITextPosition *)position
return CGRectZero;
}

CGRect rect = [super caretRectForPosition:position];
UIFont *font = self.font;
rect.size.height = font.pointSize - font.descender;
rect.origin.y -= font.descender;
return rect;
return [super caretRectForPosition:position];
}

#pragma mark - Utility Methods
Expand Down

0 comments on commit 8313f23

Please sign in to comment.