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();
Resolving as "Not our bug" based on comments that this is the same as native behavior.
Closing ticket as this is not our bug.