Merge pull request #29202 from KoBeWi/regrescroll

Fix TextEdit blocking scroll without scrollbar
This commit is contained in:
Rémi Verschelde 2019-05-26 21:06:18 +02:00 committed by GitHub
commit 252c841d7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -406,6 +406,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();
}
@ -424,6 +425,7 @@ void TextEdit::_update_scrollbars() {
cursor.x_ofs = 0;
h_scroll->set_value(0);
h_scroll->set_max(0);
h_scroll->hide();
}