From efd29f4caaa14b9e37cf2383921bc53340009df3 Mon Sep 17 00:00:00 2001 From: Stanislav Labzyuk Date: Tue, 29 Apr 2025 19:58:29 +0200 Subject: [PATCH] Fix background size calculation in TreeItem --- scene/gui/tree.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 47ea5242ba1..a39dbc96374 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2391,9 +2391,6 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2 if (i == 0) { r.position.x = p_draw_ofs.x; r.size.x = item_width + ofs; - } else { - r.position.x -= theme_cache.h_separation; - r.size.x += theme_cache.h_separation; } if (rtl) { r.position.x = get_size().width - r.position.x - r.size.x;