[TIMOB-14258] iOS: TableView automatically scrolls to focussed TextField
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-06-20T21:12:35.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | focus, ios, move, tableview, textfield |
Reporter | Matej |
Assignee | Ingo Muschenetz |
Created | 2013-06-16T20:45:31.000+0000 |
Updated | 2014-06-19T12:42:48.000+0000 |
Description
*Problem*
TableView is moving to focused TextField.
*Steps to reproduce*
1. Try to tap on the third TextField and than scroll down (To middle/end of the table).
2. TableView then automatically moves up to the focused TextField. Very annoying.
*Test case*
var win = Ti.UI.createWindow({
backgroundColor : "#FFF"
});
var table = Ti.UI.createTableView();
var data = [];
for (var i = 0; i < 30; i++) {
var row = Ti.UI.createTableViewRow({
width : Ti.UI.FILL,
height : Ti.UI.FILL
});
var tField = Ti.UI.createTextField({
width : "90%",
height : Ti.UI.FILL,
backgroundColor : "gray"
});
row.add(tField);
data.push(row);
}
table.data = data;
win.add(table);
win.open();
Tested and confirmed on iOS 6 simulator with Ti SDK 3.2 CI.
Thanks, linking and closing as duplicate.