bubbles icon indicating copy to clipboard operation
bubbles copied to clipboard

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

Open knz opened this issue 3 years ago • 1 comments

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 https://github.com/knz/bubbline/pull/9

knz avatar Sep 04 '22 12:09 knz

cc @maaslalani

knz avatar Sep 04 '22 12:09 knz