marinofaggiana 4 lat temu
rodzic
commit
47b5ee6526

+ 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)
             }