mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Merge pull request #12383 from AntiSC2/master
Fix margin with tree drawing
This commit is contained in:
commit
3504bb70a4
@ -1126,7 +1126,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
|
||||
|
||||
if (p_item->cells[i].selected && select_mode != SELECT_ROW) {
|
||||
|
||||
Rect2i r(item_rect.position, item_rect.size);
|
||||
Rect2i r(cell_rect.position, cell_rect.size);
|
||||
if (p_item->cells[i].text.size() > 0) {
|
||||
float icon_width = p_item->cells[i].get_icon_size().width;
|
||||
r.position.x += icon_width;
|
||||
|
Loading…
Reference in New Issue
Block a user