1
0
Fork 0

Fix Tree cell text vertical alignment

This commit is contained in:
passivestar 2025-07-26 16:32:01 +04:00
parent 0dd9178269
commit fed6b0dfe5
1 changed files with 1 additions and 1 deletions

View File

@ -2466,7 +2466,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
}
Point2i text_pos = item_rect.position;
text_pos.y += Math::floor(p_draw_ofs.y) - _get_title_button_height();
text_pos.y += Math::floor((item_rect.size.y - p_item->cells[i].text_buf->get_size().y) * 0.5);
switch (p_item->cells[i].mode) {
case TreeItem::CELL_MODE_STRING: {