Skip to content

Commit

Permalink
Merge pull request #61566 from monkeyman192/correct_relationship_line…
Browse files Browse the repository at this point in the history
…_lens
  • Loading branch information
akien-mga authored May 31, 2022
2 parents 532e253 + 5c29a7d commit 204f260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2169,7 +2169,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
int parent_ofs = p_pos.x + cache.item_margin;
Point2i root_pos = Point2i(root_ofs, children_pos.y + label_h / 2) - cache.offset + p_draw_ofs;

if (c->get_first_child() != nullptr) {
if (c->get_visible_child_count() > 0) {
root_pos -= Point2i(cache.arrow->get_width(), 0);
}

Expand Down

0 comments on commit 204f260

Please sign in to comment.