This commit is contained in:
Jesse MacFadyen 2015-07-28 10:45:43 -07:00
commit c4dcdacf6b

View File

@ -370,11 +370,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
CGRect frame = self.webView.frame;
frame.origin.y = 0;
if (!self.statusBarOverlaysWebView) {
if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation)) {
frame.size.height += statusBarFrame.size.width;
} else {
frame.size.height += statusBarFrame.size.height;
}
frame.size.height += MIN(statusBarFrame.size.height, statusBarFrame.size.width);
}
self.webView.frame = frame;