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

Aligns views via bounds and center #70

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

NickEntin
Copy link
Collaborator

@NickEntin NickEntin commented Nov 22, 2021

Currently we perform layout by setting views' frames. Using frame for layout has some significant disadvantages, most notably that frame is undefined when the view's transform is not the identity transform.

This updates our alignment code to ignore transforms in the view hierarchy.

See #49 for more details.

@NickEntin NickEntin force-pushed the entin/align-via-bounds-and-center branch from abbf895 to 14ac7b7 Compare November 23, 2021 00:10
Currently we perform layout by setting views' frames. Using `frame` for layout has some significant disadvantages, most notably that `frame` is undefined when the view's `transform` is not the identity transform.

This updates our alignment code to ignore transforms in the view hierarchy.
@NickEntin NickEntin force-pushed the entin/align-via-bounds-and-center branch from 1c067f6 to 22fec27 Compare November 23, 2021 00:30
@NickEntin NickEntin marked this pull request as ready for review November 23, 2021 00:32
@NickEntin NickEntin merged commit 86f0523 into develop/1.0 Nov 23, 2021
@NickEntin NickEntin deleted the entin/align-via-bounds-and-center branch November 23, 2021 04:37
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

Successfully merging this pull request may close these issues.

2 participants