From a7b2e090ad3d3beaf3fbea1deed4c44c42a33d45 Mon Sep 17 00:00:00 2001 From: Roy Berube Date: Mon, 6 Nov 2023 12:17:49 -0700 Subject: [PATCH] Enable scrolling of output with UI scale changes --- 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 31ed5984a4e..40f87362445 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -1760,7 +1760,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;