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 D782D200D0A for ; Wed, 4 Oct 2017 22:19:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D5CDB1609DD; Wed, 4 Oct 2017 20:19:59 +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 26B201609D6 for ; Wed, 4 Oct 2017 22:19:59 +0200 (CEST) Received: (qmail 94124 invoked by uid 500); 4 Oct 2017 20:19:58 -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 94113 invoked by uid 99); 4 Oct 2017 20:19:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2017 20:19:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7E6CB1805AA for ; Wed, 4 Oct 2017 20:19:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GQPC94a3HFFn for ; Wed, 4 Oct 2017 20:19:56 +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 868DA5FC8F for ; Wed, 4 Oct 2017 20: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 BE200E0BD0 for ; Wed, 4 Oct 2017 20: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 14E04242EB for ; Wed, 4 Oct 2017 20:19:00 +0000 (UTC) Date: Wed, 4 Oct 2017 20:19:00 +0000 (UTC) From: "Suraj Pindoria (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13387) ios11 scroll whitespace after click MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 Oct 2017 20:20:00 -0000 [ https://issues.apache.org/jira/browse/CB-13387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191974#comment-16191974 ] Suraj Pindoria commented on CB-13387: ------------------------------------- After discussing with the team, it looks like this is not a problem with Cordova as the same issue exists in a pure UIWebView project. You might want to try filing this with Apple directly, https://developer.apple.com/bug-reporting/. > ios11 scroll whitespace after click > ----------------------------------- > > Key: CB-13387 > URL: https://issues.apache.org/jira/browse/CB-13387 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-ios > Affects Versions: cordova-ios@4.4.0, cordova-ios@4.3.1, cordova-ios@4.5.1, cordova-ios 4.5.0 > Environment: I'm facing this issue testing with xCode 9 in iOS 11 (simulator and device), every device model, using cordova-ios from 3.8.0 to 4.5.1. I have this issue in many projects, but I create a new one without any plugins just for testing it, and it reproduces in a simple environment. > From what I have tested, i think it only happens when using new meta viewport-fit=cover at html file. > Reporter: Juan Miguel > Assignee: Suraj Pindoria > Labels: ios11, statusbar, xcode9 > Attachments: config.xml, index.html, ios11_error.png > > > When you have dynamic content in your app, it shows correctly at first moment after insert/show it, but when some click event is dispatched (and an event listener is attached) the scroll element goes down leaving an empty zone, where the elements were previously. If no event listener is attached, this issue doesn't happen. If the content is not added dynamically, the scroll starts in wrong position. > I have been testing lot of things, and the problem is that after that brokener-click, the scrolls remain in scrollTop position -44, which should be impossible (and if programatically you try to go to this position, it goes to 0 position) > I have made an image showing the issue, sorry for it's appearance, but I think it shows clearly what happens: > !ios11_error.png|width=100%! > As the image shows, it leaves a white space equal to the 'safe-zone' of the statusbar, in iPhone X are 44px, other iPhones 20px. > h2. Steps to reproduce > # Create a new project > {code:none} > cordova create ios11_error com.test Test > {code} > # Configure config.xml for disabling overscoll (I attach my configured [^config.xml], but you just need to add the next code under iOS platform): > {code:xml} > > {code} > # Replace www/index.html with the attached here [^index.html] > # Create ios platform > {code:none} > cordova platform add ios > {code} > # Add launch images for the device you want to use (if you are going to test in iPhone X, it is not included yet by default with cordova; with other models it is not neccesary) > # Launch application in your device or simulator. > When launched, everything looks fine and in right place, you can scroll and everything keep where it should. But if you make a tap where there is a click listener, the scroll element 'goes down' and you can scroll to this 'overzone', and the top scrolls goes to negative position and keeps there (-44px in iPhone X, -20px in other devices; which is the statusbar size). > It doesn't matter if you make a click in an element and doesn't make anything in that listener (blue header), or even if that listener only has prevents calls (red square in left down corner), scroll breaks. If you tap in green square, right down corner, doing a hide/show put the view again in right position. > If a click is made in a zone without a listener, anything happens and everything keeps in right place. -- 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