summaryrefslogtreecommitdiff
path: root/scene/gui/tree.h
diff options
context:
space:
mode:
authorStijn Hinlopen <f.a.hinlopen@gmail.com>2020-07-05 20:06:51 +0200
committerStijn Hinlopen <f.a.hinlopen@gmail.com>2022-02-05 10:59:33 +0100
commit31824420e4cf3a30eb35334c43cb8393af585346 (patch)
treef348f13263224068db871e02e84cb2ce6040d47d /scene/gui/tree.h
parentdf1724470d1cff4f67aeb4c0d039114373aeb001 (diff)
Center when scrolling to tree item.
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r--scene/gui/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h
index c24763a0e4..255a4f0576 100644
--- a/scene/gui/tree.h
+++ b/scene/gui/tree.h
@@ -682,7 +682,7 @@ public:
TreeItem *get_item_with_text(const String &p_find) const;
Point2 get_scroll() const;
- void scroll_to_item(TreeItem *p_item);
+ void scroll_to_item(TreeItem *p_item, bool p_center_on_item = false);
void set_h_scroll_enabled(bool p_enable);
bool is_h_scroll_enabled() const;
void set_v_scroll_enabled(bool p_enable);