diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-08 10:36:22 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 10:36:22 -0300 |
commit | 47db64ac007878904a6ccf23304502765174a8ca (patch) | |
tree | 7a794810dec3fd89f8bc2f00f0938fb5f6bd4ea9 /scene | |
parent | 3fd3dd10f774ba20409ab4a40040c22848eb26af (diff) | |
parent | 3c9ee75e2676343bd990799ede04851ee67ae560 (diff) |
Merge pull request #15258 from RyanStein/bugfix-15241
Use exact positioning for the ItemList::get_tooltip method.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/item_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 511dc248a0..baa9436a9a 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1243,7 +1243,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) { |