We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78da9cb commit c675fadCopy full SHA for c675fad
TOWebViewController/TOWebViewController.m
@@ -1575,6 +1575,10 @@ - (void)animateWebViewRotationToOrientation:(UIInterfaceOrientation)toOrientatio
1575
else
1576
frame.origin.y -= (_webViewState.topEdgeInset - self.webView.scrollView.contentInset.top);
1577
}
1578
+
1579
+ //ensure the image view stays horizontally aligned to the center when we rotate back to portrait
1580
+ if (UIInterfaceOrientationIsPortrait(toOrientation))
1581
+ frame.origin.x = floor(CGRectGetWidth(self.view.bounds) * 0.5f) - (CGRectGetWidth(self.webViewRotationSnapshot.frame) * 0.5f);
1582
1583
1584
0 commit comments