RichTextLabel: clear the scroll offset.
(cherry picked from commit 970dc91cb7
)
This commit is contained in:
parent
08fd792c45
commit
a1b0e7b12c
|
@ -1453,6 +1453,7 @@ void RichTextLabel::clear() {
|
||||||
main->lines.clear();
|
main->lines.clear();
|
||||||
main->lines.resize(1);
|
main->lines.resize(1);
|
||||||
main->first_invalid_line = 0;
|
main->first_invalid_line = 0;
|
||||||
|
scroll_w = 0;
|
||||||
update();
|
update();
|
||||||
selection.click = NULL;
|
selection.click = NULL;
|
||||||
selection.active = false;
|
selection.active = false;
|
||||||
|
|
Loading…
Reference in New Issue