summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-24 18:55:44 +0200
committerGitHub <noreply@github.com>2019-06-24 18:55:44 +0200
commitefa4264633e842e3606aa3113ea26ab9b9f986ca (patch)
tree6f34ec2cc5664d61b06bfb97518d0e5388279ee2
parent908a50739a380fca047e348656c12335a7bb52e2 (diff)
parentc58b7ab09468bbf17e19b252dee0caf4b427ab5b (diff)
Merge pull request #30009 from Anutrix/tree-icons-height-fix
Fixed script and visibility icons's highlight height in tree
-rw-r--r--scene/gui/tree.cpp2
1 files changed, 2 insertions, 0 deletions
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<Texture> 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;