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

Fix not center aligned issue in landscape mode for both iOS7 and iOS8 #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iNima
Copy link

@iNima iNima commented Oct 25, 2014

Hi @rnystrom

This commit resolves #45 .
The problem can be seen in these screenshots for landscape mode (iOS7.1) in iPad.
Pull requests #9 resolved similar issue but the solution only works in iOS8. In iOS7.1 for example the result is what you can see in these screenshots:

rnblurmodalviewpullreq1

rnblurmodalviewpullreq2

The problem is based on difference between bounds and frames values in portrait and landscape mode.
We should use bounds to perform any calculation as it gives us the correct values independent of our device orientation.
Calculation for _contentView.center should be based on viewController.view.bounds and parentView.bounds.

Regards,
Nima Azimi

@iNima
Copy link
Author

iNima commented Feb 21, 2015

Hi @rnystrom

Did you check this pull request?

Regards,
Nima

@sadjad
Copy link

sadjad commented Feb 26, 2015

Dude, merge this, please :)

@foffux
Copy link

foffux commented Mar 18, 2015

Has someone any news about @rnystrom?
Is he still working on his projects?
Can anyone else merge all this pull requests and make new pod?
Thank you.

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.

Show popview on iPad in Lanscape is not on the center.
3 participants