Skip to content

Centered TextField cursor is at the left edge when \n is entered. #27867

@GaryQian

Description

@GaryQian

When on a line that is not the first line and the line is empty (only \n was pressed from previous line), the cursor behaves as if it were left justified.

Should be simple to fix by defaulting x advance offset to width_/2 when centered instead of zero in LibTxt paragraph.cc. May want to look at Paragraph::GetLineXOffset()

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsa: typographyText rendering, possibly libtxtengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions