marinofaggiana 4 년 전
부모
커밋
47b5ee6526
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

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

@@ -183,7 +183,10 @@ class NCViewerImageZoom: UIViewController {
                 if !detailView.hasData() { return }
                 guard let textColor = self.viewerImage?.textColor else {return }
                 
-                let height = (view.bounds.width / 3) * 2
+                var height = (view.bounds.height / 3) * 2
+                if view.bounds.width < view.bounds.height {
+                    height = (view.bounds.width / 3) * 2
+                }
                 detailView.show(height: height, textColor: textColor)
             }