From c58b7ab09468bbf17e19b252dee0caf4b427ab5b Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 23 Jun 2019 21:36:47 +0530 Subject: Fixed script and visibility icons's highlight height in tree --- scene/gui/tree.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene') diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 54370d02ba..5493879e55 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -1128,6 +1128,8 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2 for (int j = p_item->cells[i].buttons.size() - 1; j >= 0; j--) { Ref b = p_item->cells[i].buttons[j].texture; Size2 s = b->get_size() + cache.button_pressed->get_minimum_size(); + if (s.height < label_h) + s.height = label_h; Point2i o = Point2i(ofs + w - s.width, p_pos.y) - cache.offset + p_draw_ofs; -- cgit v1.2.3