Fix background size calculation in TreeItem
This commit is contained in:
parent
b1b873add3
commit
efd29f4caa
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue