From issues-return-93970-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Mon Apr 16 03:19:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id AE380180648 for ; Mon, 16 Apr 2018 03:19:03 +0200 (CEST) Received: (qmail 99744 invoked by uid 500); 16 Apr 2018 01:19:02 -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 99733 invoked by uid 99); 16 Apr 2018 01:19:02 -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; Mon, 16 Apr 2018 01:19:02 +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 3F4031A051E for ; Mon, 16 Apr 2018 01:19:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FosUd3Ju6N41 for ; Mon, 16 Apr 2018 01:19:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 482D95F2C3 for ; Mon, 16 Apr 2018 01:19:01 +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 A1563E0287 for ; Mon, 16 Apr 2018 01:19:00 +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 5D04421208 for ; Mon, 16 Apr 2018 01:19:00 +0000 (UTC) Date: Mon, 16 Apr 2018 01:19:00 +0000 (UTC) From: "Gearoid M (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13987) WKWebView doesn't layout properly at launch on iPhone X MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13987?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164389= 07#comment-16438907 ]=20 Gearoid M commented on CB-13987: -------------------------------- I am also seeing this issue. The problem is that the window height is not b= eing set correctly. It is quite simple to reproduce. First set up a blank C= ordova project, and set it up to use the wkwebview plugin and support iPhon= e X. # cordova create test # cordova plugin add cordova-plugin-wkwebview-engine # cordova platform add ios # Add a storyboard splash screen to config.xml for iOS, and add viewport-f= it=3Dcover to the viewport meta tag # cordova run ios Now open up the Safari inspector. Notice that when you hover over the devic= e's name in Safari's develop menu, the outline of the window on the device = is not the whole screen. In the inspector console, take a look at window.in= nerHeight. On an iPhone X, it should be 812, but it is reported as 734. Now= , rotate the device to landscape, and back to portrait. Check window.innerH= eight again and it is now correctly shown to be 812. > WKWebView doesn't layout properly at launch on iPhone X > ------------------------------------------------------- > > Key: CB-13987 > URL: https://issues.apache.org/jira/browse/CB-13987 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-ios > Affects Versions: cordova-ios@4.5.4 > Environment: Mac > Cordova 8.0.0 > codova-plugin-wkwebview-engine 1.1.4 > Reporter: Kamal Kalra > Assignee: Suraj Pindoria > Priority: Major > Attachments: TestApp2.zip > > > WKWebView doesn't seem to layout properly at launch.=C2=A0 There is a bla= ck bar at the bottom of the view.=C2=A0 If I rotate the app to landscape mo= de, the view automatically resizes correctly and occupies the entire screen= .=C2=A0 Then when I rotate back to portrait mode, it works correctly and oc= cupies the entire screen as expected.=C2=A0 But at launch this is not happe= ning.=C2=A0 It should occupy the entire screen at that point without having= to rotate back and forth. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org