Skip to content

textarea: SetValue with input taller than viewport does not position cursor properly #231

@knz

Description

@knz

When I call SetValue() with a string that contains more lines than the height of the textarea, the cursor gets moved outside of view.

I then need to use MoveToBegin() to make it visible again.

I believe this is because repositionView() does not clamp the result to the viewport height.

Found while working on knz/bubbline#9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions