Browse Source

Fix TreeItem button tooltip trigger area offset

Haoyu Qiu 6 months ago
parent
commit
387d0e7100
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/gui/tree.cpp

+ 1 - 1
scene/gui/tree.cpp

@@ -5629,7 +5629,7 @@ void Tree::_find_button_at_pos(const Point2 &p_pos, TreeItem *&r_item, int &r_co
 	}
 	}
 
 
 	for (int i = 0; i < col; i++) {
 	for (int i = 0; i < col; i++) {
-		const int col_w = get_column_width(i) + theme_cache.h_separation;
+		const int col_w = get_column_width(i);
 		pos.x -= col_w;
 		pos.x -= col_w;
 		x_limit -= col_w;
 		x_limit -= col_w;
 	}
 	}