Skip to content

Position of cursor in empty lines doesn't respect the alignment #534

@ogoffart

Description

@ogoffart

The position of the blining cursor on empty line doesn't respect the alignment.
To reproduce the bug, i added this line:

editor.set_alignment(parley::Alignment::Center);

in the Editor::new function at the beginning of examples/vello_editor/src/text.rs

As you can see, the cursor when editing a new line is all the way to the right instead of being on the center.
Starting to edit makes the cursor at the right position.

Image

(Reported to Slint in slint-ui/slint#3580)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-parleyRelates to the parley cratebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions