-
Notifications
You must be signed in to change notification settings - Fork 85
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
Images at bottom of view when device is flat. #19
Comments
It seems as if the device orientation is set as UIDeviceOrientationFaceUp. The setFrame function in AGPhotoBrowserCell doesn't take this orientation into consideration so the size never gets set. Tweaked this code to check for that orientation as well and it seems to fix the problem somewhat. UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; |
Thanks, i'll have a look at the issue and your fix soon. |
I received another report for this bug and you are right i was not handling the orientation correctly when the device is laying flat on a surface. Your proposal for a fix is (part of) the solution i'll include in the next update, thanks! |
I'm experiencing the similar issue in the following scenario:
|
fixed orientation issues when device is laying flat on a surface #19, co...
For some reason when I load the photo browser and my device is laying flat on a table the images will show up at the bottom of the view and the title and description will be chopped off. If I tilt the device towards me, so it is more vertical, the images center.
Just thought I'd post this to see if anyone else can replicate.
The text was updated successfully, but these errors were encountered: