-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TabContainer not set up properly when its children are ready #95819
Comments
Bisecting points to #87194 as the culprit: |
This is just because the default changed in 4.3, from 0 to -1. |
@kitbdev You are right, the state of the TabContainer in 4.3 and 4.2.2 is not really different. The problem is from the perspective of the user I think it is a fair assumption that a I'll leave this issue open for the responsible people to decide whether the current behaviour has to be changed/can be changed or if this is how it should be. |
Probably caused by Having said that, I agree that this is probably not intended to work. |
In GDScript, it's easier to deal with this, since you can use |
Tested versions
v4.3.stable.official [77dcf97]
Works fine in v4.2.2 (and before)
System information
Windows 10
Issue description
When instantiating TabContainer children via code the TabContainer is not set up properly when one of the children is ready. Compare these two outputs:
v4.2.2
v4.3
This forces users to
call_deferred
any logic that relies on these properties, which is pretty inconvenient.Steps to reproduce
ready
signal of the childMinimal reproduction project (MRP)
TabContainerCurrentTab.zip
This is a 4.2.2 project which can easily be converted to 4.3
The text was updated successfully, but these errors were encountered: