Browse Source

update image view

marinofaggiana 4 years ago
parent
commit
7335a2b7be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

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

@@ -149,8 +149,8 @@ class NCViewerImageZoom: UIViewController {
         guard let image = image else { return }
         
         self.image = image
-        imageView.frame = CGRect(x: imageView.frame.origin.x, y: imageView.frame.origin.y, width: image.size.width, height: image.size.height)
         imageView.image = image
+        imageView.frame = CGRect(x: imageView.frame.origin.x, y: imageView.frame.origin.y, width: image.size.width, height: image.size.height)
     }
 }