Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F4215200C22 for ; Tue, 21 Feb 2017 17:52:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F2DC3160B74; Tue, 21 Feb 2017 16:52:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 47544160B4F for ; Tue, 21 Feb 2017 17:52:49 +0100 (CET) Received: (qmail 10733 invoked by uid 500); 21 Feb 2017 16:52:48 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 10722 invoked by uid 99); 21 Feb 2017 16:52:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 16:52:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BE5C71A023D for ; Tue, 21 Feb 2017 16:52:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lyQrn2LKhgdU for ; Tue, 21 Feb 2017 16:52:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 51A305FACA for ; Tue, 21 Feb 2017 16:52:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 57AA8E05C2 for ; Tue, 21 Feb 2017 16:52:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 219BA24129 for ; Tue, 21 Feb 2017 16:52:44 +0000 (UTC) Date: Tue, 21 Feb 2017 16:52:44 +0000 (UTC) From: "Michael Capulong (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-12478) iOS WebView's height becomes greater than screen height after dismissing the presented ViewController MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 21 Feb 2017 16:52:50 -0000 Michael Capulong created CB-12478: ------------------------------------- Summary: iOS WebView's height becomes greater than screen height after dismissing the presented ViewController Key: CB-12478 URL: https://issues.apache.org/jira/browse/CB-12478 Project: Apache Cordova Issue Type: Bug Components: Plugin Battery Status, Plugin Camera Environment: iOS Reporter: Michael Capulong The combination of PRs for CB-10158 and CB-11191 has created this scenario. Versions involved: # cordova-plugin-statusbar - 2.2.1 # cordova-plugin-camera - 2.3.1 and below When the camera plugin view controller is dismissed in line 548 * https://github.com/apache/cordova-plugin-camera/blob/rel/2.3.1/src/ios/CDVCamera.m#L548, the cordovaViewWillAppear method is called. This happens because cordovaViewWillAppear was registered to listen for "CDVViewWillAppearNotification" events * https://github.com/apache/cordova-plugin-statusbar/blob/rel/2.2.1/src/ios/CDVStatusBar.m#L120. The method cordovaViewWillAppear calls resizeWebView. When resizeWebView reaches line 473 * https://github.com/apache/cordova-plugin-statusbar/blob/rel/2.2.1/src/ios/CDVStatusBar.m#L473, all of statusBarFrame's members are set to zeroes. The app then proceeds with lines 476 and 480 * https://github.com/apache/cordova-plugin-statusbar/blob/rel/2.2.1/src/ios/CDVStatusBar.m#L476 * https://github.com/apache/cordova-plugin-statusbar/blob/rel/2.2.1/src/ios/CDVStatusBar.m#L480 and this results in frame.origin.y being assigned the value of 20. Then in line 485, the frame.size.height gets the value of -20 * https://github.com/apache/cordova-plugin-statusbar/blob/rel/2.2.1/src/ios/CDVStatusBar.m#L485. The negative height of the frame causes the the WebView to increase its height beyond the screen by 20 units. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org