diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-09-14 22:25:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 22:25:58 +0200 |
commit | 39e35ab6eea2c6e265016a787eb60718df9ce699 (patch) | |
tree | e113f9021cd411c1032a1ee019ddcc63f6d688f5 /scene | |
parent | 1c7aec9d9cc15c338e4dfa5228825901efadb477 (diff) | |
parent | b54b0bc5803ddd269887e2cf24fc4b1d2880d0a1 (diff) |
Merge pull request #52353 from williamd67/documentation-view-scroll-to-end
Documentation view scroll to end
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/rich_text_label.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index aeadfd78ee..562bac60c2 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -366,7 +366,7 @@ void RichTextLabel::_resize_line(ItemFrame *p_frame, int p_line, const Ref<Font> } if (p_line > 0) { - l.offset.y = p_frame->lines[p_line - 1].offset.y + p_frame->lines[p_line - 1].text_buf->get_size().y; + l.offset.y = p_frame->lines[p_line - 1].offset.y + p_frame->lines[p_line - 1].text_buf->get_size().y + get_theme_constant(SNAME("line_separation")); } else { l.offset.y = 0; } @@ -614,7 +614,7 @@ void RichTextLabel::_shape_line(ItemFrame *p_frame, int p_line, const Ref<Font> *r_char_offset = l.char_offset + l.char_count; if (p_line > 0) { - l.offset.y = p_frame->lines[p_line - 1].offset.y + p_frame->lines[p_line - 1].text_buf->get_size().y; + l.offset.y = p_frame->lines[p_line - 1].offset.y + p_frame->lines[p_line - 1].text_buf->get_size().y + get_theme_constant(SNAME("line_separation")); } else { l.offset.y = 0; } |