From 3e821abfc2888b77a3e86657698a2d6774152793 Mon Sep 17 00:00:00 2001 From: Christian Wannerstedt Date: Wed, 1 Jul 2015 13:49:50 +0200 Subject: [PATCH] Don't use IsAtLeastiOSVersion macro to determine height --- src/ios/CDVStatusBar.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m index f83ed03..3fac9a0 100644 --- a/src/ios/CDVStatusBar.m +++ b/src/ios/CDVStatusBar.m @@ -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) && !IsAtLeastiOSVersion(@"8.0")) { - 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;