Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jason-simmons
Copy link
Member

GetRectsForRange inserts empty rectangles that represent newline
characters within the specified range of text positions. The
x coordinate of these rectangles needs to account for left/right/center
alignment.

Fixes flutter/flutter#53057

GetRectsForRange inserts empty rectangles that represent newline
characters within the specified range of text positions.  The
x coordinate of these rectangles needs to account for left/right/center
alignment.

Fixes flutter/flutter#53057
@DeMonkeyCoder
Copy link
Contributor

This PR has problems with RTL because it places the caret on the glyph_line's end on the newline and that means the line's start on an RTL line.
image

@DeMonkeyCoder
Copy link
Contributor

DeMonkeyCoder commented Apr 16, 2020

I made another PR based on this one that also handles direction #17750

Copy link
Contributor

@GaryQian GaryQian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #17750 which has a version that handles RTL better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiline TextField cursor is misplaced when regain focus & textAlign is end, right, or center

4 participants