-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
The grow_direction horizontal/vertical properties are not present anymore #58857
Comments
cc @pycbouh |
It's hidden on purpose. @reduz wanted it to be controlled by the anchor preset, automatically changing with it to give the user the most expected behavior out of the box. Which is why it is only editable with the custom preset. |
Oh, got it! The grow direction is within the Custom mode of the Anchor Preset. |
Yeah, I figured that out. Sadly, until we implement the grow_direction computed out of the anchors values (this might require a proposal, as we might need to override this default behavior, I am not sure), we need access to grow_direction properties with other presets. I'll make a PR as a quick fix, but I agree we should discuss the implementation of the computation of grow_direction out of anchors. Edit: Or maybe I misunderstood something? Because if your message suggests it is implemented, then the default value for the Edit 2: Ah... Seems like I cannot reproduce the bug, and that the grow direction is indeed set correctly. I don't know, there might be a situation where the grow_direction is not set right away ? That's weird. |
Anyway, closing this as the original situation is expected. I'll if I am able to reproduce the bug again, I'll open another issue. |
Godot version
4.0
System information
v4.0.alpha.custom_build [73f92a6]
Issue description
The grow_direction properties, which controls in which way a Control expands when its size is modified is not editable anymore in the inspector:
Steps to reproduce
Create a control node, then edit it.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: