aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarynate2014-05-21 01:06:43 +0800
committermarynate2014-05-21 01:07:47 +0800
commit3164784ca3fb5deb56dcd82d16862d562cd60910 (patch)
treec490b721f407e3c7e26215bfab4503b73db8f64e
parentb324ff7ea584676fcc3292808d7e7ea609982f8e (diff)
downloadgodot-3164784ca3fb5deb56dcd82d16862d562cd60910.tar.gz
godot-3164784ca3fb5deb56dcd82d16862d562cd60910.tar.zst
godot-3164784ca3fb5deb56dcd82d16862d562cd60910.zip
Fix script editor scrollbar disappear issue
-rw-r--r--scene/gui/text_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index c48d8bb1d..3566c1bfc 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -336,7 +336,7 @@ void TextEdit::_update_scrollbars() {
v_scroll->set_val(cursor.line_ofs);
} else {
-
+ cursor.line_ofs = 0;
v_scroll->hide();
}