diff options
author | Pawel Kowal <pkowal1982@gmail.com> | 2016-09-17 21:29:55 +0200 |
---|---|---|
committer | Pawel Kowal <pkowal1982@gmail.com> | 2016-09-17 21:29:55 +0200 |
commit | 9e5aaa27bc48bcba7392febeb583b4959a826c9e (patch) | |
tree | cba4596ff0e8edfb3fca04b83c63db1e12d670df /scene/resources | |
parent | c05ff0577fd9cc39a6968e65743f7d7da711bfe2 (diff) |
Add scrolling to Tree control in Drag and Drop mode
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index dea612735c..0740b591c4 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -714,6 +714,8 @@ void fill_default_theme(Ref<Theme>& t, const Ref<Font> & default_font, const Ref t->set_constant("item_margin","Tree",12 *scale); t->set_constant("button_margin","Tree",4 *scale); t->set_constant("draw_relationship_lines", "Tree", 0); + t->set_constant("scroll_border", "Tree", 4); + t->set_constant("scroll_speed", "Tree", 12); // ItemList |