marinofaggiana 5 年之前
父节点
当前提交
54b4fd8acf
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      iOSClient/Viewer/NCViewerPDF.swift

+ 4 - 1
iOSClient/Viewer/NCViewerPDF.swift

@@ -92,19 +92,22 @@ import PDFKit
         guard let navigationController = detailViewController.navigationController else { return }
         
         if navigationController.isNavigationBarHidden {
+            
             navigationController.isNavigationBarHidden = false
             pdfThumbnailView!.isHidden = false
             backgroundColor = NCBrandColor.sharedInstance.backgroundView
             detailViewController.view.backgroundColor = backgroundColor
             backgroundColor = .black
-
             self.frame = CGRect(x: 0, y: 0, width: detailViewController.backgroundView.frame.width, height: detailViewController.backgroundView.frame.height - thumbnailViewHeight)
+            
         } else {
+            
             navigationController.isNavigationBarHidden = true
             pdfThumbnailView!.isHidden = true
             backgroundColor = .black
             detailViewController.view.backgroundColor = backgroundColor
             self.frame = CGRect(x: 0, y: 0, width: detailViewController.backgroundView.frame.width, height: detailViewController.backgroundView.frame.height)
+            
         }
     }
 }