Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14258] iOS: TableView automatically scrolls to focussed TextField

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2013-06-20T21:12:35.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelsfocus, ios, move, tableview, textfield
ReporterMatej
AssigneeIngo Muschenetz
Created2013-06-16T20:45:31.000+0000
Updated2014-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();

Comments

  1. Daniel Sefton 2013-06-17

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.2 CI.
  2. Matej 2013-06-20

  3. Daniel Sefton 2013-06-20

    Thanks, linking and closing as duplicate.

JSON Source