[
https://issues.apache.org/jira/browse/CB-4988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13784944#comment-13784944
]
Matt McDonald commented on CB-4988:
-----------------------------------
Just found this: http://osdir.com/ml/phonegap/2013-09/msg01077.html
Tested it, and adding this code fixed the issue:
- (void)viewDidLayoutSubviews{
if ([self respondsToSelector:@selector(topLayoutGuide)]) // iOS 7 or above
{
CGFloat top = self.topLayoutGuide.length;
if(self.webView.frame.origin.y == 0){ // We only want to do this once,
or if the view has somehow been "restored" by other code.
self.webView.frame = CGRectMake(self.webView.frame.origin.x,
self.webView.frame.origin.y + top, self.webView.frame.size.width,
self.webView.frame.size.height - top);
}
}
}
> InAppBrowser broken top bar iOS 7
> ---------------------------------
>
> Key: CB-4988
> URL: https://issues.apache.org/jira/browse/CB-4988
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, Plugin InAppBrowser
> Affects Versions: 3.0.0, 3.1.0
> Environment: iOS 7
> Reporter: Matt McDonald
>
> In iOS 7, when the top bar is viewable in your app, the InAppBrowser plugin
> goes underneath the bar.
--
This message was sent by Atlassian JIRA
(v6.1#6144)