Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
knz opened this issue Sep 4, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@knz
Copy link
Contributor

knz commented Sep 4, 2022

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

@knz
Copy link
Contributor Author

knz commented Sep 4, 2022

cc @maaslalani

@muesli muesli added the bug Something isn't working label Sep 4, 2022
@bashbunni bashbunni added this to the textarea and textinput milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants