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 {
                                     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)