marinofaggiana 4 年之前
父節點
當前提交
2b6333c7d6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

+ 2 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

@@ -172,7 +172,8 @@ class NCViewerImageZoom: UIViewController {
 
             // OPEN DETAIL
             if dy < panDistanceForDetailView {
-                detailViewBottomConstraint.constant = imageViewBottomConstraint.constant - 40
+                let offsetBottom = self.view.safeAreaInsets.bottom - 10
+                detailViewBottomConstraint.constant = imageViewBottomConstraint.constant - offsetBottom
                 openDetailView = true
             }