Method to scroll TextArea
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Originally by @magi42
It would be useful to be able to set the scroll position for TextArea. For example, if the component is used for displaying a log, it would be nice if it is scrolled to the end.
It would be natural if the scroll position could be given (also) as row number, not as pixels as in Panel. Scrolling to the end should also be supported, for example by giving a very large row number.
Currently, setting cursor position in TextArea does not scroll the area so that the cursor would be visible (this could be considered as a bug).
Imported from https://dev.vaadin.com/ issue #6008
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the TextArea component and comparing its current scrolling behavior with Panel, especially how cursor positioning affects visibility. The work is done when TextArea supports setting scroll position by row, can scroll to the end, and keeps the cursor visible when its position changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100