Skip to content

Setting text of TextEdit produces inconsistent results #32609

@Zylann

Description

@Zylann

Godot 3.1.1
Godot 3.2

When I set text of a TextEdit, the scrollbar doesn't match what the text viewport shows.

image

In Godot 3.1.1, text is shown from beginning, but the scrollbar is not at the beginning.
In Godot 3.2, the same happens, except text doesn't show from beginning either.
In both versions, repeatedly changing text somewhat makes it scroll more and more.
I tried calling cursor_set_position to force the editor to start showing text from the beginning just after setting text, but it had no effect.

Test project:
TextEditDoesNotScroll.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions