Set max value of inactive TextEdit scrolls to 0

(cherry picked from commit 892d93759c)
This commit is contained in:
kobewi 2022-01-09 01:45:07 +01:00 committed by Rémi Verschelde
parent a28955ac46
commit 9f7f7377dd
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -382,6 +382,7 @@ void TextEdit::_update_scrollbars() {
cursor.line_ofs = 0;
cursor.wrap_ofs = 0;
v_scroll->set_value(0);
v_scroll->set_max(0);
v_scroll->hide();
}
@ -399,6 +400,7 @@ void TextEdit::_update_scrollbars() {
} else {
cursor.x_ofs = 0;
h_scroll->set_value(0);
h_scroll->set_max(0);
h_scroll->hide();
}