diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-24 10:28:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-24 10:28:44 +0100 |
commit | 8348aca118311b82f632781b19230471fae56d4a (patch) | |
tree | 7695bfa21407e2434f37bef8034777fca3e2266c | |
parent | 958786166218462b4dea46847cbbeb6de339360b (diff) | |
parent | 970dc91cb77bd415c2a3f6894c1b140f4ff3cff0 (diff) |
Merge pull request #23934 from allkhor/rich_text_label_scroll_offset
RichTextLabel: clear the scroll offset.
-rw-r--r-- | scene/gui/rich_text_label.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index 9f1687262f..17de346f51 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -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; |