Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2473] Android webview scrolls up when typing in input field

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2014-03-28T23:56:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsandroid, input, scroll, vertical_layout, webview
Reporterdemetri ganoff
AssigneeRadamantis Torres-Lechuga
Created2014-02-06T15:41:32.000+0000
Updated2016-03-08T07:41:31.000+0000

Description

I have a Webview inside of a Window. The Window has the property layout="vertical" and the Webview has the property top="-100dp". When I type into an input field inside the Webview, the Webview automatically scrolls up a few lines for each character I type. This only happens if the input field is viewable on the screen, when the input field becomes out of view, the automatic scrolling stops. I have attached a sample project that illustrates this bug. I have a production Android app that I would like to implement a similar window/webview structure and cannot proceed because of this bug.

Attachments

FileDateSize
app.zip2014-02-06T15:41:32.000+00005150131

Comments

  1. Ritu Agrawal 2014-02-09

    Please provide the complete environment information (SDK version, CLI version, Device or Simulator) so that we can reproduce this issue.
  2. demetri ganoff 2014-02-10

    SDK Version: 3.1.3. CLI version: 3.1.0. Simulator running Android 4.3, 4.2.2 and 4.1.2. Device: Samsung Galaxy S2 running Android 4.2.2.

JSON Source