From 89047e5772fb0fdd02607de867a43b8e951ded24 Mon Sep 17 00:00:00 2001 From: Andrej Beliakov Date: Wed, 8 Jan 2020 14:21:47 +0100 Subject: [PATCH] Fix iOS open menu being drawn outside of the viewport --- src/ios/FileOpener2.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/FileOpener2.m b/src/ios/FileOpener2.m index 465b2a4..f57e256 100644 --- a/src/ios/FileOpener2.m +++ b/src/ios/FileOpener2.m @@ -88,7 +88,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. wasOpened = [docController presentPreviewAnimated: NO]; } else { CDVViewController* cont = self.cdvViewController; - CGRect rect = CGRectMake(0, 0, cont.view.bounds.size.width, cont.view.bounds.size.height); + CGRect rect = CGRectMake(cont.view.bounds.size.width, 0, cont.view.bounds.size.height, 0); wasOpened = [docController presentOpenInMenuFromRect:rect inView:cont.view animated:YES]; }