Explorar o código

improved

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana hai 1 ano
pai
achega
c2a4c5acf5
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

+ 0 - 3
iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

@@ -452,7 +452,6 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
         self.pdfThumbnailScrollViewWidthAnchor?.constant = thumbnailViewWidth + (window?.safeAreaInsets.right ?? 0)
         UIView.animate(withDuration: animateDuration, animations: {
             self.pdfThumbnailScrollViewTrailingAnchor?.constant = 0
-            // self.view.layoutIfNeeded()
             self.pdfContainer.layoutIfNeeded()
         })
     }
@@ -462,7 +461,6 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
 
         UIView.animate(withDuration: animateDuration) {
             self.pdfThumbnailScrollViewTrailingAnchor?.constant = self.thumbnailViewWidth + (self.window?.safeAreaInsets.right ?? 0)
-            // self.view.layoutIfNeeded()
             self.pdfContainer.layoutIfNeeded()
         } completion: { _ in
             self.pdfThumbnailScrollView.isHidden = true
@@ -481,7 +479,6 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
             self.pdfThumbnailScrollViewTrailingAnchor?.constant = widthThumbnail
             self.pdfThumbnailScrollViewWidthAnchor?.constant = widthThumbnail
 
-            // self.view.layoutIfNeeded()
             self.pdfContainer.layoutIfNeeded()
             self.pdfView.autoScales = true
         })