marinofaggiana 4 年之前
父節點
當前提交
8957a5c753
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Viewer/NCViewerRichdocument.swift

+ 1 - 1
iOSClient/Viewer/NCViewerRichdocument.swift

@@ -169,7 +169,7 @@ class NCViewerRichdocument: WKWebView, WKNavigationDelegate, WKScriptMessageHand
                                 } else {
                                 } else {
                                     self.documentInteractionController = UIDocumentInteractionController()
                                     self.documentInteractionController = UIDocumentInteractionController()
                                     self.documentInteractionController.url = URL(fileURLWithPath: item)
                                     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 {
                             } else {
                                 NCContentPresenter.shared.messageNotification("_error_", description: errorDescription, delay: TimeInterval(k_dismissAfterSecond), type: NCContentPresenter.messageType.error, errorCode: errorCode)
                                 NCContentPresenter.shared.messageNotification("_error_", description: errorDescription, delay: TimeInterval(k_dismissAfterSecond), type: NCContentPresenter.messageType.error, errorCode: errorCode)