Browse Source

Improvements

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 năm trước cách đây
mục cha
commit
ed9a94115d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

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

@@ -78,6 +78,7 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate, UIGestureRecogni
         pdfView = PDFView(frame: CGRect(x: 0, y: 0, width: view.frame.width, height: view.frame.height))
         pdfView.translatesAutoresizingMaskIntoConstraints = false
         pdfView.document = pdfDocument
+        pdfView.autoScales = true
         pdfView.displayMode = .singlePageContinuous
         pdfView.displayDirection = .vertical
         pdfView.maxScaleFactor = 4.0