Enable scrolling of output with UI scale changes
(cherry picked from commit a7b2e090ad
)
This commit is contained in:
parent
8a395124e6
commit
d8b89badfd
|
@ -1659,7 +1659,7 @@ void RichTextLabel::_scroll_changed(double) {
|
||||||
return;
|
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;
|
scroll_following = true;
|
||||||
} else {
|
} else {
|
||||||
scroll_following = false;
|
scroll_following = false;
|
||||||
|
|
Loading…
Reference in New Issue