Webview does not resize when using fullscreen
Reported by
aaron.na...@pearson.com,
Aug 3 2016
|
||||||||||
Issue descriptionSteps to reproduce the problem: 1. Open index2.html via a web view app in Android 2. Click on the text area towards the bottom What is the expected behavior? The webview should be resized and scrolled so the text field is visible. What went wrong? The webview does not scroll and can not be scrolled so the text field can not be seen. Did this work before? No Chrome version: 52.0.2743.82 Channel: stable OS Version: Android 6.0.1 Flash Version: Not sure if this is a Chromium issue or an Android issue, so I will be sharing this in both bug trackers. We have an app that uses fullscreen mode with a webview. If you click on a text input that is in the lower half of the screen (see the attached index2.html) the soft keyboard covers it and you can not scroll to see the text input. If I remove the fullscreen attribute (line 33 in the attached MainActivity.java) it will move the element to the visible area of the screen. Our app is targeted at tablets with 9 inch or larger screens. I have noticed that when the fullscreen attribute is removed the page in the webview receives both a resize and scroll event. Once fullscreen is added the page receives neither. I'm using Marshmallow (API 23) for this example. I've attached a minimal sample app to demonstrate the issue. I've also opened this issue the Android: https://code.google.com/p/android/issues/detail?id=219125
,
Aug 8 2016
,
Aug 9 2016
,
Sep 4 2017
The assigned owner "timav@chromium.org" is not able to receive e-mails, please re-triage. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 6 2017
aaron.nance@, apologies for the super slow response, is this still reproducible on WebView 61?
,
Sep 6 2017
Let me verify and I will get back to you in the next day.
,
Sep 8 2017
Verified this issue still exists in 61, 62, and 63 using the same files attached on Android 7.1.1
,
Sep 27 2017
,
Oct 10 2017
,
Nov 14 2017
Satya please look into this.
,
Nov 14 2017
I'm able to reproduce this issue on galaxy tab s2 / NRD90M vs 56.0.2924.87 AND Nexus 5x / N2G48H vs 62.0.3202.84 Im not able to see the issue on webview shell it seems an app issue
,
Nov 28 2017
alekyoo: can you attach the apk you compiled, and maybe a video of what you observed? I thought this was height wrap_content issue, but looking at activity_main.xml, doesn't appear to be the case..
,
Nov 28 2017
boliu@ http://go/chrome-androidlogs1/7/634025 please see compiled apk (by @aluo) video and logcat. I see scrolling, but I don't see text resizing in compiled apk, but it does resized in webview shell.
,
Nov 29 2017
by default (not in fullscreen mode), the view tree, including the webview, is resized when the on screen keyboard comes up. and scrolling the textbox into view, as well as zooming in slightly are both consequence of this resizing. That doesn't seem to happen in fullscreen mode. So webview has no idea that a major part of it is covered by the android keyboard. So this isn't a webview issue. Found this on stackoverflow though: https://stackoverflow.com/questions/7417123/android-how-to-adjust-layout-in-full-screen-mode-when-softkeyboard-is-visible |
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by rsgav...@chromium.org
, Aug 3 2016