Selaa lähdekoodia

Fix background size calculation in TreeItem

Stanislav Labzyuk 5 kuukautta sitten
vanhempi
commit
efd29f4caa
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  1. 0 3
      scene/gui/tree.cpp

+ 0 - 3
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;