2
0
mirror of https://github.com/godotengine/godot.git synced 2025-04-25 01:48:08 +08:00

Merge pull request from Giganzo/tree-jiggle

Fix Tree buttons jiggle on horizontal scrolling
This commit is contained in:
Thaddeus Crews 2025-04-10 10:18:11 -05:00
commit 504036466b
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC

@ -2257,7 +2257,7 @@ int Tree::draw_item(const Point2i &p_pos, const Point2 &p_draw_ofs, const Size2
buttons_width += button_texture->get_size().width + theme_cache.button_pressed->get_minimum_size().width + theme_cache.button_margin;
}
int total_ofs = ofs - theme_cache.offset.x;
double total_ofs = ofs - theme_cache.offset.x;
// If part of the column is beyond the right side of the control due to scrolling, clamp the label width
// so that all buttons attached to the cell remain within view.