Skip to content
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

Wht don't you put padding and margin features in FlexContatiner(not child)? #15

Open
cplus98 opened this issue Oct 30, 2023 · 1 comment

Comments

@cplus98
Copy link
Contributor

cplus98 commented Oct 30, 2023

It is more efficient than using a separate MarginContainer because it is processed at once when calculating FlexContaminer layout.

@citizenll
Copy link
Owner

Due to the initial design, I defined FlexContainer as a Container node in Godot, following the behavior of Container. MarginContainer node handles the margin itself, and currently neither the container nor its child nodes have padding. This can be added as a new property to both the container and its child nodes (padding handling is available in version 3.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants