marinofaggiana 3 년 전
부모
커밋
3bbd3600b0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

+ 2 - 0
iOSClient/Viewer/NCViewerImage/NCViewerImageZoom.swift

@@ -120,6 +120,8 @@ class NCViewerImageZoom: UIViewController {
         super.viewWillTransition(to: size, with: coordinator)
         
         coordinator.animate(alongsideTransition: { (context) in
+            // back to the original size
+            self.scrollView.zoom(to: CGRect(x: 0, y: 0, width: self.scrollView.bounds.width, height: self.scrollView.bounds.height), animated: false)
             self.view.layoutIfNeeded()
             UIView.animate(withDuration: context.transitionDuration) {
                 // resize frame video