summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authormarynate <mary.w.nate@gmail.com>2014-05-21 01:06:43 +0800
committermarynate <mary.w.nate@gmail.com>2014-05-21 01:07:47 +0800
commit3164784ca3fb5deb56dcd82d16862d562cd60910 (patch)
treec490b721f407e3c7e26215bfab4503b73db8f64e /scene/gui
parentb324ff7ea584676fcc3292808d7e7ea609982f8e (diff)
Fix script editor scrollbar disappear issue
Diffstat (limited to 'scene/gui')
-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 c48d8bb1de..3566c1bfc4 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();
}