vaadin / vaadin/framework

Method to scroll TextArea

Open
#1,320 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.