-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Scaling HBoxContainer children results in loss of alignment #38356
Comments
From what I can see, the |
This is the expected behavior. Children of containers get their size and position (which are proxies of the margins values), overridden by the container itself. Changing those values should not be done and might lead to unexpected behaviors. I think there is already a PR somewhere to fix that by disabling the edit of those properties, but I could not find it. |
Here it is: #30623 |
Exactly, thanks ! :) |
Oh, in fact I just realized that I am probably wrong. But this make this issue a duplicate of #19068. |
Thanks guys! Glad to know it's not a bug. It had me confused for a while so I'm glad there's a PR to prevent editing of the properties. |
Godot version:
OS/device including version:
Issue description:
When scaling a child of HBoxContainer, the item no longer matches the HBox alignment.
Steps to reproduce:
Top Wide
rect.scale
to (0.1, 0.1)The MenuButton will now be half way across the HBoxContainer
Other information
The text was updated successfully, but these errors were encountered: