浏览代码

update image view

marinofaggiana 4 年之前
父节点
当前提交
7335a2b7be
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
     }
 }