Fix TextEdit blocking scroll without scrollbar

This commit is contained in:
Tomasz Chabora 2019-05-26 20:51:08 +02:00
parent df17cf06d4
commit 90ea9dfede
1 changed files with 2 additions and 0 deletions

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();
}