summaryrefslogtreecommitdiffstats
path: root/scene/gui
diff options
context:
space:
mode:
authorRoy Berube <royberube1965@gmail.com>2023-11-06 12:17:49 -0700
committerRoy Berube <royberube1965@gmail.com>2023-11-06 12:17:49 -0700
commita7b2e090ad3d3beaf3fbea1deed4c44c42a33d45 (patch)
tree26f48431beed7fadc5a22b6f5b0b5252c296bca2 /scene/gui
parent4c96e9676b66d0cc9a25022b019b78f4c20ddc60 (diff)
downloadredot-engine-a7b2e090ad3d3beaf3fbea1deed4c44c42a33d45.tar.gz
Enable scrolling of output with UI scale changes
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/rich_text_label.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp
index 31ed5984a4..40f8736244 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;