Merge pull request #29648 from jbuck3/tree-tooltips
Fix Tree button tooltips
This commit is contained in:
commit
434a1fddf3
1 changed files with 4 additions and 0 deletions
|
@ -3720,6 +3720,10 @@ String Tree::get_tooltip(const Point2 &p_pos) const {
|
|||
|
||||
const TreeItem::Cell &c = it->cells[col];
|
||||
int col_width = get_column_width(col);
|
||||
|
||||
for (int i = 0; i < col; i++)
|
||||
pos.x -= get_column_width(i);
|
||||
|
||||
for (int j = c.buttons.size() - 1; j >= 0; j--) {
|
||||
Ref<Texture> b = c.buttons[j].texture;
|
||||
Size2 size = b->get_size() + cache.button_pressed->get_minimum_size();
|
||||
|
|
Loading…
Reference in a new issue