You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by da...@apache.org on 2016/03/30 09:10:52 UTC

cordova-plugin-statusbar git commit: CB-10884 Inappbrowser breaks UI while Screen orientation changes from landscape to portrait on iOS

Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master 15043c1db -> 244eb717f


CB-10884 Inappbrowser breaks UI while Screen orientation changes from landscape to portrait on iOS


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/244eb717
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/244eb717
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/244eb717

Branch: refs/heads/master
Commit: 244eb717fda536adad073b727fd4af1dd3cd58fd
Parents: 15043c1
Author: daserge <v-...@microsoft.com>
Authored: Tue Mar 29 16:49:29 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Tue Mar 29 16:49:29 2016 +0300

----------------------------------------------------------------------
 src/ios/CDVStatusBar.m | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/244eb717/src/ios/CDVStatusBar.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index dcfb88f..23c983a 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -445,6 +445,8 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
         
         if (UIInterfaceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) {
             self.viewController.view.frame = bounds;
+        } else if (self.viewController.presentedViewController != nil) {
+            bounds = CGRectMake(0, 0, bounds.size.height, bounds.size.width);
         }
         self.webView.frame = bounds;
         


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org