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

Use key window bounds instead of screen bounds #112

Merged
merged 1 commit into from
Jun 19, 2017

Conversation

danwilliams64
Copy link
Contributor

Thanks for the awesome library! I've noticed that the layout breaks on iPad in split screen mode because it relies on a call to UIScreen.main.bounds to perform layout calculations. I've switched to using the key window's bounds instead which fixes this problem.

@onmyway133
Copy link
Contributor

onmyway133 commented Jun 19, 2017

@danwilliams64 Hi, thanks for the PR, that is a really good point. Can you use window from app delegate, instead of the keyWindow?. There are cases the keyWindow won't be what you think

@danwilliams64
Copy link
Contributor Author

Thanks for getting back to quickly – sure, I've just made that change.

@onmyway133 onmyway133 merged commit df48ce7 into hyperoslo:master Jun 19, 2017
@onmyway133
Copy link
Contributor

@danwilliams64 this is great 🚀

@danwilliams64 danwilliams64 deleted the fix/screen_bounds branch June 19, 2017 10:48
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