From 3c9ee75e2676343bd990799ede04851ee67ae560 Mon Sep 17 00:00:00 2001 From: Ryan Stein Date: Mon, 1 Jan 2018 22:46:32 -0500 Subject: [PATCH] Use exact positioning for the ItemList::get_tooltip method. --- scene/gui/item_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index b1c862d1d1b..c9f6bd4302d 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1192,7 +1192,7 @@ bool ItemList::is_pos_at_end_of_items(const Point2 &p_pos) const { String ItemList::get_tooltip(const Point2 &p_pos) const { - int closest = get_item_at_position(p_pos); + int closest = get_item_at_position(p_pos, true); if (closest != -1) { if (!items[closest].tooltip_enabled) {