summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-01-09 01:45:07 +0100
committerkobewi <kobewi4e@gmail.com>2022-01-09 01:45:07 +0100
commit892d93759c5dddc9af4e57deec2e3613909d8cc8 (patch)
tree9063e687865162de66c345f2fe9b3750dc77aa93 /scene/gui
parent5a61822d7ccab39b00ddd5c9bcc01fb04112b976 (diff)
Set max value of inactive TextEdit scrolls to 0
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 817a4453a8..55f621fa96 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -5949,6 +5949,7 @@ void TextEdit::_update_scrollbars() {
caret.line_ofs = 0;
caret.wrap_ofs = 0;
v_scroll->set_value(0);
+ v_scroll->set_max(0);
v_scroll->hide();
}
@@ -5966,6 +5967,7 @@ void TextEdit::_update_scrollbars() {
} else {
caret.x_ofs = 0;
h_scroll->set_value(0);
+ h_scroll->set_max(0);
h_scroll->hide();
}