marinofaggiana 5 år sedan
förälder
incheckning
54b4fd8acf
1 ändrade filer med 4 tillägg och 1 borttagningar
  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)
+            
         }
     }
 }