You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a regression since v4.1.dev4.official [5c2295f], I can't bisect atm to find the commit that caused it, maybe #77651 but that's just a guess.
When a HBoxContainer has a label child, and that label's text is changed, one used to be able to find the new size of the container by using call_deferred, this is no longer the case.
The resized or minimum_size_changed signals can be used.
Those can be a work-around in some cases, but they are only emitted if the size changes. One might want to do something like a dynamic code-driven animation that relies on the correct size after setting the text, without knowing if that text will force a resize ahead of time, which makes things difficult. await get_tree().process_frame is also not the same because of the 1-frame delay, seemingly.
Godot version
543750a
System information
Windows 10, Vulkan
Issue description
This is a regression since v4.1.dev4.official [5c2295f], I can't bisect atm to find the commit that caused it, maybe #77651 but that's just a guess.
When a HBoxContainer has a label child, and that label's text is changed, one used to be able to find the new size of the container by using call_deferred, this is no longer the case.
MRP correct behavior (v4.1.dev4.official [5c2295f]):
MRP incorrect (543750a):
Steps to reproduce
Minimal reproduction project
call_deferred bug.zip
The text was updated successfully, but these errors were encountered: