Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

orientation is not restricted: in iOS changing orientation to landscape cuts off app #27

Open
simpixelated opened this issue May 22, 2015 · 3 comments
Labels

Comments

@simpixelated
Copy link

I have an iOS app that is restricted to portrait orientation only, but the file viewer that's opened using this plugin does allow rotation to landscape. If I close the file while in landscape, the bottom half of the screen is black and it looks like the app is trying to take up the space of landscape, but is not rotated to fit. It can be reset by opening another file, rotating to landscape, then back to portrait and closing the file.

img_0004

I don't know if this helps, but I saw there was a similar bug in the Codova InAppBrowser plugin that was fixed: https://issues.apache.org/jira/browse/CB-5649

@disusered
Copy link
Owner

Thanks for the report, and the related bug. I should have time at the end of this week to look at it, I will update this issue with my progress.

@dakiva
Copy link

dakiva commented May 25, 2015

For the issue above, I forked and hacked a solution that forces portrait mode. Pasting it below as potential reference. The subclassing of QLPreviewController is likely sane, and you could influence the return value based on configuration.

master...homdna:master

@disusered
Copy link
Owner

Thank you for the reference and help! I agree with making it configurable, I will take your suggestions very much into account!

@disusered disusered added the bug label Nov 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants