Marino Faggiana 6 년 전
부모
커밋
938a1926f5
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      iOSClient/Main/CCDetail.m
  2. 1 1
      iOSClient/Viewer/NCViewerDocumentWeb.swift
  3. 1 1
      iOSClient/Viewer/NCViewerMedia.swift

+ 1 - 1
iOSClient/Main/CCDetail.m

@@ -237,8 +237,8 @@
         }
         
         self.edgesForExtendedLayout = UIRectEdgeBottom;
-        [[NCViewerDocumentWeb sharedInstance] viewDocumentWebAt:self.metadataDetail detail:self];
         [self createToolbar];
+        [[NCViewerDocumentWeb sharedInstance] viewDocumentWebAt:self.metadataDetail detail:self];
     }
 }
 

+ 1 - 1
iOSClient/Viewer/NCViewerDocumentWeb.swift

@@ -70,7 +70,7 @@ class NCViewerDocumentWeb: NSObject {
         preferences.javaScriptEnabled = true
         configuration.preferences = preferences
         
-        let webView = WKWebView(frame: CGRect(x: 0, y: 0, width: Int(rootView.bounds.size.width), height: Int(rootView.bounds.size.height) - Int(k_detail_Toolbar_Height) - safeAreaBottom), configuration: configuration)
+        let webView = WKWebView(frame: CGRect(x: 0, y: 0, width: Int(rootView.bounds.size.width), height: Int(rootView.bounds.size.height) - Int(k_detail_Toolbar_Height) - safeAreaBottom - 1), configuration: configuration)
         webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
         webView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         webView.isOpaque = false

+ 1 - 1
iOSClient/Viewer/NCViewerMedia.swift

@@ -71,7 +71,7 @@ class NCViewerMedia: NSObject {
         appDelegate.playerController = AVPlayerViewController()
         
         appDelegate.playerController.player = appDelegate.player
-        appDelegate.playerController.view.frame = CGRect(x: 0, y: 0, width: Int(rootView.bounds.size.width), height: Int(rootView.bounds.size.height) - Int(k_detail_Toolbar_Height) - safeAreaBottom)
+        appDelegate.playerController.view.frame = CGRect(x: 0, y: 0, width: Int(rootView.bounds.size.width), height: Int(rootView.bounds.size.height) - Int(k_detail_Toolbar_Height) - safeAreaBottom - 1)
         appDelegate.playerController.allowsPictureInPicturePlayback = false
         detail.addChild(appDelegate.playerController)
         detail.view.addSubview(appDelegate.playerController.view)