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

Layout group children auto-spacing #2304

Open
LeXXik opened this issue Jul 20, 2020 · 1 comment
Open

Layout group children auto-spacing #2304

LeXXik opened this issue Jul 20, 2020 · 1 comment
Assignees
Labels

Comments

@LeXXik
Copy link
Contributor

LeXXik commented Jul 20, 2020

Forum topic: https://forum.playcanvas.com/t/layout-question/14045

https://developer.playcanvas.com/en/api/pc.LayoutGroupComponent.html
Feature request: add an option for pc.LayoutGroupComponent to auto space its children.

image

@jpauloruschel
Copy link
Contributor

I really like this idea. Thinking about how to expose this functionality: how about a separate option in the fitting options? Currently we have None, Stretch, Shrink and Both, the last 3 of which alter the positions and sizes of the children. We would then add another option like Space, which only alters the positions, but not the sizes. I think there's no use-case to have resizes + auto spacing.

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

No branches or pull requests

2 participants