Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78EF310138 for ; Thu, 3 Oct 2013 09:35:50 +0000 (UTC) Received: (qmail 41452 invoked by uid 500); 3 Oct 2013 09:35:50 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 41080 invoked by uid 500); 3 Oct 2013 09:35:44 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 41054 invoked by uid 99); 3 Oct 2013 09:35:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 09:35:42 +0000 Date: Thu, 3 Oct 2013 09:35:42 +0000 (UTC) From: "Matt McDonald (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4988) InAppBrowser broken top bar iOS 7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)