marinofaggiana 4 years ago
parent
commit
47b5ee6526
1 changed files with 4 additions and 1 deletions
  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 }
                 if !detailView.hasData() { return }
                 guard let textColor = self.viewerImage?.textColor else {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)
                 detailView.show(height: height, textColor: textColor)
             }
             }