From d8b89badfd46aa79f4b7a5cb9de46a3bcc65e545 Mon Sep 17 00:00:00 2001 From: Roy Berube Date: Tue, 23 Jan 2024 20:20:18 +0100 Subject: [PATCH] Enable scrolling of output with UI scale changes (cherry picked from commit a7b2e090ad3d3beaf3fbea1deed4c44c42a33d45) --- scene/gui/rich_text_label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index e65c3050df9..b9939c77399 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1659,7 +1659,7 @@ void RichTextLabel::_scroll_changed(double) { return; } - if (scroll_follow && vscroll->get_value() >= (vscroll->get_max() - vscroll->get_page())) { + if (scroll_follow && vscroll->get_value() >= (vscroll->get_max() - Math::round(vscroll->get_page()))) { scroll_following = true; } else { scroll_following = false;