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

Consider how to make container "hug" content for any minor alignment #1

Open
bridger opened this issue May 18, 2016 · 0 comments
Open

Comments

@bridger
Copy link
Owner

bridger commented May 18, 2016

When a view's minor alignment is SLAlignmentFill then all subviews will fit the container and any of them that have a hugging priority will cause the container to be as small as possible. When any other alignment is specified then the container is free to get as big as it wants along the minor axis.

It would be nice to set a "hug" priority at which the minor axis will try to get as small as possible. This would allow a set of horizontal views to be top-aligned, but the container will only be as tall as the tallest subview.

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

1 participant