New issue
Advanced search Search tips

Issue 634025 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Webview does not resize when using fullscreen

Reported by aaron.na...@pearson.com, Aug 3 2016

Issue description

Steps 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
 
MainActivity.java
3.5 KB View Download
AndroidManifest.xml
1.1 KB View Download
index2.html
3.3 KB View Download
styles.xml
1.2 KB View Download
activity_main.xml
555 bytes View Download
Components: -UI Mobile>WebView

Comment 2 by ti...@chromium.org, Aug 8 2016

Cc: sgu...@chromium.org boliu@chromium.org
Owner: ti...@chromium.org
Status: Assigned (was: Unconfirmed)
Cc: maxkirsch@chromium.org
Project Member

Comment 4 by sheriffbot@chromium.org, Sep 4 2017

Labels: Hotlist-Recharge-BouncingOwner
Owner: ----
Status: Untriaged (was: Assigned)
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
Labels: -Pri-2 Needs-Feedback Pri-3
aaron.nance@, apologies for the super slow response, is this still reproducible on WebView 61?
Let me verify and I will get back to you in the next day.
Verified this issue still exists in 61, 62, and 63 using the same files attached on Android 7.1.1

Comment 8 by sgu...@chromium.org, Sep 27 2017

Cc: -sgu...@chromium.org
Labels: Needs-triage-Mobile

Comment 10 by cmasso@google.com, Nov 14 2017

Satya please look into this.
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

Comment 12 by boliu@chromium.org, Nov 28 2017

Owner: alek...@chromium.org
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..
Cc: alek...@chromium.org
Owner: boliu@chromium.org
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. 

Comment 14 by boliu@chromium.org, Nov 29 2017

Status: WontFix (was: Untriaged)
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