Selaa lähdekoodia

update image view

marinofaggiana 4 vuotta sitten
vanhempi
commit
7335a2b7be
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)
     }
 }