1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

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

View File

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