mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
Fix Tree hover position with multiple columns
This commit is contained in:
parent
394508d26d
commit
00527d0588
@ -5487,15 +5487,14 @@ Tree::FindColumnButtonResult Tree::_find_column_and_button_at_pos(int p_x, const
|
||||
}
|
||||
}
|
||||
|
||||
if (x > col_width) {
|
||||
col_ofs += col_width;
|
||||
x -= col_width;
|
||||
limit_w -= col_width;
|
||||
continue;
|
||||
if (x < col_width) {
|
||||
col = i;
|
||||
break;
|
||||
}
|
||||
|
||||
col = i;
|
||||
break;
|
||||
col_ofs += col_width;
|
||||
x -= col_width;
|
||||
limit_w -= col_width;
|
||||
}
|
||||
|
||||
if (col >= 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user