[AC-2059] TextField focus doesn't work when TF isn't visible...
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-07-09T17:44:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | focus, textfield |
Reporter | Matej |
Assignee | Shak Hossain |
Created | 2013-07-04T08:39:10.000+0000 |
Updated | 2016-03-08T07:41:01.000+0000 |
Description
TextField focus doesn't work when TF isn't visible on a screen.
*STEPS TO REPRODUCE?:*
- Turn on app
- When you stay on the top of a TableView you can see first TextField there focus work without any problem
- Try to hide showed keyboard for first TextField and scroll/move to the bottom of a TableView (There focus doesn't work...)
*SAMPLE:*
var win = Ti.UI.createWindow();
var table = Ti.UI.createTableView({ style: Ti.UI.iPhone.TableViewStyle.GROUPED });
var data = [];
for(i=0;i<20;i++)
{
var row = Ti.UI.createTableViewRow({width: Ti.UI.FILL, height: Ti.UI.FILL});
var tField = Ti.UI.createTextField({width: Ti.UI.FILL, height: "100%"});
row.add(tField);
data.push(row);
}
table.data = data;
win.add(table);
win.open();
setInterval(function(){ data[0].children[0].focus(); }, 3000);
Closing as duplicate of TC-2569.