[TIMOB-14500] iOS: Alert + Focus on a TextField moves Grouped TableView to the left
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | TableView, TextField,, alert, focus, iOS |
Reporter | Carter Lathrop |
Assignee | Unknown |
Created | 2013-07-07T22:09:48.000+0000 |
Updated | 2018-02-28T20:03:31.000+0000 |
Description
*Problem*
Alert + Focus on a TextField that is more than 50% filled within a grouped tableViewRow on iOS aligns the whole TableView to the left edge of the screen. Sometimes is TableView moved to the left a stays there and sometimes after the alert is closed, it returns to normal position.
*Test Case*
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 : '99%',
height : "100%"
});
row.add(tField);
data.push(row);
}
table.data = data;
win.add(table);
win.open();
setInterval(function() {
alert("ALERT!");
data[0].children[0].focus();
}, 5000);
Note:
I tested various sizes of of the textfield within in tableViewRow to see if this had any effect on the bug. Turns out it happens the most when textField width is Ti.UI.FILL or 100% but still happens when less than 100% (eg I tried at 99% and it still occured). It didn't seem to happen at all with width set to 50% though I can't be sure as I only watched the alert pop up maybe 10 times. I don't know where the threshold is for this to occur as it would take quite a while to test every width layout between 50% and 99%
Attachments
File | Date | Size |
---|---|---|
Snímka obrazovky 2013-07-04 o 11.07.15 AM.png | 2013-07-07T22:09:48.000+0000 | 146650 |
Tested and confirmed on iOS6 simulator 3.1.0GA 3.1.1GA Titanium Studio, build: 3.2.0.201307031744