Use correct statusbar height for landscape orientation in iOS >= 8

This commit is contained in:
Christian Wannerstedt 2015-07-01 13:25:26 +02:00
parent 2e8164693e
commit 07b55b7529

View File

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