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 EFB76200D20 for ; Tue, 17 Oct 2017 18:43:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDF461609EB; Tue, 17 Oct 2017 16:43:04 +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 1816D1609D9 for ; Tue, 17 Oct 2017 18:43:03 +0200 (CEST) Received: (qmail 15779 invoked by uid 500); 17 Oct 2017 16:43:03 -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 15767 invoked by uid 99); 17 Oct 2017 16:43:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2017 16:43:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 711ECCE6C8 for ; Tue, 17 Oct 2017 16:43:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id g4CtvsgQQ7v0 for ; Tue, 17 Oct 2017 16:43: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 1951B5F2AD for ; Tue, 17 Oct 2017 16:43: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 8E81AE0373 for ; Tue, 17 Oct 2017 16:43: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 255422430F for ; Tue, 17 Oct 2017 16:43:00 +0000 (UTC) Date: Tue, 17 Oct 2017 16:43:00 +0000 (UTC) From: "Tyler Vorpahl (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-13455) Reverting CB-12015 causes viewport issues on Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 Oct 2017 16:43:05 -0000 [ https://issues.apache.org/jira/browse/CB-13455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Vorpahl updated CB-13455: ------------------------------- Description: CB-12015 added the following two lines: # settings.setUseWideViewPort(true); # settings.setLoadWithOverviewMode(true); To initWebViewSettings() method in SystemWebViewEngine.java Using the following viewport tags in our index.html of our application, we have not had any issues with Android. Since CB-12939, reverting the change in CB-12015 has caused our app to not properly fit the viewport. This has been observed in a Motorolla X 37 and Samsung Galaxy S7. Mozilla/5.0 (Linux; Android 6.0; XT1095 Build/MPES24.49-18-7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36 The defect causes the screen to be moveable within the viewport, allowing the user to pan the page around where this was not observed prior to CB-12015 being reverted as a result of CB-12939. From my understanding, settings.setUseWideViewPort(true) must be set to true otherwise WebView will ignore the meta tag. Thanks! Related: https://stackoverflow.com/questions/44923541/setting-viewport-width-is-ignored-on-cordova-7 https://fetch-info.blogspot.com/2015/06/include-viewport-settings-in-cordova-if.html https://stackoverflow.com/questions/22161421/viewport-meta-tag-ignored-in-android-4-4-webview was: CB-12015 added the following two lines: # settings.setUseWideViewPort(true); # settings.setLoadWithOverviewMode(true); To initWebViewSettings() method in SystemWebViewEngine.java Using the following viewport tags in our index.html of our application, we have not had any issues with Android. Since CB-12939, reverting the change in CB-12015 has caused our app to not properly fit the viewport. This has been observed in a Motorolla X 37 and Samsung Galaxy S7. Mozilla/5.0 (Linux; Android 6.0; XT1095 Build/MPES24.49-18-7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36 The defect causes the screen to be moveable within the viewport, allowing the user to pan the page around where this was not observed prior to CB-12015 being reverted as a result of CB-12939. From my understanding, webView.getSettings().setUseWideViewPort(true) must be set to true otherwise WebView will ignore the meta tag. Thanks! Related: https://stackoverflow.com/questions/44923541/setting-viewport-width-is-ignored-on-cordova-7 https://fetch-info.blogspot.com/2015/06/include-viewport-settings-in-cordova-if.html https://stackoverflow.com/questions/22161421/viewport-meta-tag-ignored-in-android-4-4-webview > Reverting CB-12015 causes viewport issues on Android > ---------------------------------------------------- > > Key: CB-13455 > URL: https://issues.apache.org/jira/browse/CB-13455 > Project: Apache Cordova > Issue Type: Bug > Environment: > > > > > > > > > > > > > > > > > > > > > > > > > > Reporter: Tyler Vorpahl > Priority: Minor > Original Estimate: 4h > Remaining Estimate: 4h > > CB-12015 added the following two lines: > # settings.setUseWideViewPort(true); > # settings.setLoadWithOverviewMode(true); > To initWebViewSettings() method in SystemWebViewEngine.java > Using the following viewport tags in our index.html of our application, we have not had any issues with Android. > > Since CB-12939, reverting the change in CB-12015 has caused our app to not properly fit the viewport. > This has been observed in a Motorolla X 37 and Samsung Galaxy S7. > Mozilla/5.0 (Linux; Android 6.0; XT1095 Build/MPES24.49-18-7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36 > The defect causes the screen to be moveable within the viewport, allowing the user to pan the page around where this was not observed prior to CB-12015 being reverted as a result of CB-12939. > From my understanding, settings.setUseWideViewPort(true) must be set to true otherwise WebView will ignore the meta tag. > Thanks! > Related: > https://stackoverflow.com/questions/44923541/setting-viewport-width-is-ignored-on-cordova-7 > https://fetch-info.blogspot.com/2015/06/include-viewport-settings-in-cordova-if.html > https://stackoverflow.com/questions/22161421/viewport-meta-tag-ignored-in-android-4-4-webview -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org