summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2016-08-23 08:14:04 +0900
committervolzhs <volzhs@gmail.com>2016-08-28 15:18:13 +0900
commit2e5a4cb5ca33576ea81601f949b2e633ff92213c (patch)
treed0b470d0436097e9f129ab4b9689c45a0fbc6f97 /scene
parent2cf781d3c66cbc53739ff91d4608ac979ae17262 (diff)
Show last added action on Input Map and implement InputEvent "=="
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index 487f62ed44..e10922f057 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -3128,7 +3128,7 @@ void Tree::ensure_cursor_is_visible() {
int screenh=get_size().height-h_scroll->get_combined_minimum_size().height;
if (ofs+h>v_scroll->get_val()+screenh)
- v_scroll->set_val(ofs-screenh+h);
+ v_scroll->call_deferred("set_val", ofs-screenh+h);
else if (ofs < v_scroll->get_val())
v_scroll->set_val(ofs);
}