Enable scrolling of output with UI scale changes

(cherry picked from commit a7b2e090ad)
This commit is contained in:
Roy Berube 2023-11-06 12:17:49 -07:00 committed by Rémi Verschelde
parent a813176bb3
commit 0478c7c1cc
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1771,7 +1771,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;