Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16456] Android: WebView scrolling up when typing if top property has negative value

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionNot Our Bug
Resolution Date2014-02-24T17:56:24.000+0000
Affected Version/sRelease 3.2.1
Fix Version/sn/a
ComponentsAndroid
LabelssupportTeam
ReporterMarco Cota
AssigneeIngo Muschenetz
Created2014-02-12T17:34:20.000+0000
Updated2017-03-13T21:38:57.000+0000

Description

Issue

When a webview is assigned a negative value in the top property will start scrolling up when user starts typing into a textfield, this will occur while the focus textfield is visible in the screen, once this textfield is our of screen the scrolling will stop.

Testing

Tested on SDK 3.2.0, SDK 3.2.1 and SDK 3.1.3 While testing this issue comes to our attention that this issue will not be reproducible across all android devices and versions. Showing the issue: Samsung Galaxy III mini - Android 4.1.3 Samsung Galaxy S2 - Android 4.2.2 Sony Ericsson Xperia Play - Android 4.0.4 Not Showing the issue: Nexus 7 - Android 4.4 Samsung Galaxy Player - Android 2.3.5

Steps to Repro

1. Run the test case 2. Click on a webview textfield 3. Start Typing 4. The webview will start scrolling up

Test case

index.xml
<Alloy>
	<Window class="container">
		
		<Label id="label" onClick="doClick">Hello, World</Label>
		<WebView id="webview" url="/html/index.html">
			
		</WebView>
	</Window>
</Alloy>
index.tss
".container": {
	backgroundColor:"white",
	layout: 'vertical'
},
"Label": {
	width: Ti.UI.SIZE,
	height: Ti.UI.SIZE,
	color: "#000"
},
"#webview": {
	top: '-100dp'
}
index.js
function doClick(e) {
    alert($.label.text);
}

$.index.open();

Comments

  1. Ingo Muschenetz 2014-02-24

    Resolving as "Not our bug" based on comments that this is the same as native behavior.
  2. Lee Morris 2017-03-13

    Closing ticket as this is not our bug.

JSON Source