TextField not Auto-Scrolling on Append
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
I'm currently using the Python Flet library and have noticed that when I append new text to multiple textfields, the TextField does not auto-scroll to show the newly added content. This makes it difficult to see the most recent updates without manually scrolling through the entire textfield.
Steps to Reproduce:
Create a TextField object
Add some initial text
Append new text to the TextField object
Notice that the textfield does not auto-scroll to show the new content
Expected Behavior:
When new text is appended to a TextField object, the view should automatically scroll to show the newest content at the bottom of the textfield.
Actual Behavior:
The TextField does not auto-scroll to show the newly added content, making it difficult to see the most recent updates without manually scrolling through the entire textfield.
Possible Solution:
One possible solution could be to implement a function that checks the length of the text in the TextField before and after appending new text, and if the length has increased, automatically scroll to the bottom of the TextField to display the new content.
Thanks for your help in addressing this issue!
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 reproducing the issue with a Flet TextField: add initial text, append more text, and observe whether the view remains at the previous position. Trace the TextField implementation and its update path; done means appended content is visible at the bottom automatically without manual scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100