Merge pull request #23934 from allkhor/rich_text_label_scroll_offset

RichTextLabel: clear the scroll offset.
This commit is contained in:
Rémi Verschelde 2018-11-24 10:28:44 +01:00 committed by GitHub
commit 8348aca118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1616,6 +1616,7 @@ void RichTextLabel::clear() {
main->lines.clear();
main->lines.resize(1);
main->first_invalid_line = 0;
scroll_w = 0;
update();
selection.click = NULL;
selection.active = false;