Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarino Faggiana <marino@marinofaggiana.com>2022-09-30 13:59:29 +0300
committerMarino Faggiana <marino@marinofaggiana.com>2022-09-30 13:59:29 +0300
commit15f21fc067c83777617925c8e778f6cf4a5d6ffc (patch)
treea9fffae3cf040da7fcb1e5ac10a3e10bb8a0fc79
parent02a2962788550abf8fe162c4313461e4544f3c8d (diff)
iPAD PDF
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
-rw-r--r--iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift3
1 files changed, 2 insertions, 1 deletions
diff --git a/iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift b/iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift
index 6c84f1f5c..751dcd0bc 100644
--- a/iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift
+++ b/iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift
@@ -45,6 +45,7 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
private let thumbnailViewWidth: CGFloat = 80
private let thumbnailPadding: CGFloat = 2
private let animateDuration: TimeInterval = 0.3
+ private let pageViewtopAnchor: CGFloat = UIDevice.current.userInterfaceIdiom == .phone ? 10 : 30
private var defaultBackgroundColor: UIColor = .clear
@@ -133,7 +134,7 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
view.addSubview(pageView)
NSLayoutConstraint.activate([
- pageView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 10),
+ pageView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: pageViewtopAnchor),
pageView.heightAnchor.constraint(equalToConstant: 30),
pageView.leftAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leftAnchor, constant: 10)
])