Closed nimau closed 10 months ago
Kudos, SonarCloud Quality Gate passed!
when will this turn up in EXI? am still getting weird caret positioning in today's nightly:
(there is no trailing space here...)
when will this turn up in EXI? am still getting weird caret positioning in today's nightly:
(there is no trailing space here...)
I'll make a version 2.19.0 to include this fix in EX.
thanks!
This PR fixes https://github.com/vector-im/element-x-ios/issues/1674
The caret position was calculated using the glyph bounding rectangle, but this rectangle sometimes (almost always when the caret is set at the end of a wrapped line) coincided with the start of the next line. So the final caret position was at the correct x position, but at the wrong y position.
The fix is to let the UITextView calculate the correct caret rect and just update it's y and height.