marinofaggiana 4 years ago
parent
commit
8957a5c753
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Viewer/NCViewerRichdocument.swift

+ 1 - 1
iOSClient/Viewer/NCViewerRichdocument.swift

@@ -169,7 +169,7 @@ class NCViewerRichdocument: WKWebView, WKNavigationDelegate, WKScriptMessageHand
                                 } else {
                                     self.documentInteractionController = UIDocumentInteractionController()
                                     self.documentInteractionController.url = URL(fileURLWithPath: item)
-                                    self.documentInteractionController.presentOptionsMenu(from: self.appDelegate.window.rootViewController!.view.bounds, in: self.appDelegate.window.rootViewController!.view, animated: true)
+                                    self.documentInteractionController.presentOptionsMenu(from: CGRect.zero, in: self.appDelegate.window.rootViewController!.view, animated: true)
                                 }
                             } else {
                                 NCContentPresenter.shared.messageNotification("_error_", description: errorDescription, delay: TimeInterval(k_dismissAfterSecond), type: NCContentPresenter.messageType.error, errorCode: errorCode)