cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/3] git commit: ios: Fix hide to adjust webview's frame only when status bar is not overlaying webview
Date Tue, 15 Jul 2014 02:56:56 GMT
Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master ccb465f80 -> be8a3e594


ios: Fix hide to adjust webview's frame only when status bar is not overlaying webview


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/commit/6552bddf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/6552bddf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/6552bddf

Branch: refs/heads/master
Commit: 6552bddfd1083dff8a13c165ed8c68476b332ee6
Parents: ccb465f
Author: Tiancheng Zhu <phaitour@gmail.com>
Authored: Thu Apr 10 16:25:47 2014 -0700
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Jul 14 22:56:06 2014 -0400

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/6552bddf/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index e954a54..e773397 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -327,11 +327,12 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
 
             CGRect frame = self.webView.frame;
             frame.origin.y = 0;
-
-            if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation))
{
-                frame.size.height += statusBarFrame.size.width;
-            } else {
-                frame.size.height += statusBarFrame.size.height;
+            if (!self.statusBarOverlaysWebView) {
+                if (UIDeviceOrientationIsLandscape(self.viewController.interfaceOrientation))
{
+                    frame.size.height += statusBarFrame.size.width;
+                } else {
+                    frame.size.height += statusBarFrame.size.height;
+                }
             }
 
             self.webView.frame = frame;


Mime
View raw message