Fix large images being offset on some devices

Closes #6
This commit is contained in:
Shadowfacts 2018-10-30 22:14:02 -04:00
parent aaddae1ecb
commit 4bf49211fd
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ class LargeImageViewController: UIViewController, UIScrollViewDelegate {
scrollView.zoomScale = minScale scrollView.zoomScale = minScale
scrollView.maximumZoomScale = minScale >= 1 ? minScale + 2 : 2 scrollView.maximumZoomScale = minScale >= 1 ? minScale + 2 : 2
centerImage()
if !initializedTopControlsConstrains { if !initializedTopControlsConstrains {
initializedTopControlsConstrains = true initializedTopControlsConstrains = true
if view.safeAreaInsets.top == 44 { if view.safeAreaInsets.top == 44 {