Correctly calculate position of the folding arrow in Tree
This commit is contained in:
parent
994c1201c1
commit
873443756d
1 changed files with 2 additions and 1 deletions
|
@ -1968,7 +1968,8 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
|
|||
arrow = cache.arrow;
|
||||
}
|
||||
|
||||
Point2 apos = p_pos + p_draw_ofs + Point2i(0, (label_h - arrow->get_height()) / 2) - cache.offset;
|
||||
Point2 apos = p_pos + Point2i(0, (label_h - arrow->get_height()) / 2) - cache.offset + p_draw_ofs;
|
||||
apos.x += cache.item_margin - arrow->get_width();
|
||||
|
||||
if (rtl) {
|
||||
apos.x = get_size().width - apos.x - arrow->get_width();
|
||||
|
|
Loading…
Reference in a new issue