We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84af492 commit fe6c824Copy full SHA for fe6c824
1 file changed
ios/input/EnrichedMarkdownInput.mm
@@ -777,8 +777,8 @@ - (CGRect)computeCaretRect
777
NSRange glyphRange = [_textView.layoutManager glyphRangeForCharacterRange:NSMakeRange(selection.location, 0)
778
actualCharacterRange:NULL];
779
caretRect = [_textView.layoutManager boundingRectForGlyphRange:glyphRange inTextContainer:_textView.textContainer];
780
- caretRect.origin.x += _textView.textContainerInset.width;
781
- caretRect.origin.y += _textView.textContainerInset.height;
+ caretRect.origin.x += _textView.textContainerInset.left;
+ caretRect.origin.y += _textView.textContainerInset.top;
782
}
783
#endif
784
return caretRect;
0 commit comments