{ "id": "116928", "key": "TIMOB-14500", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-07-07T22:09:48.000+0000", "priority": null, "labels": [ "TableView", "TextField,", "alert", "focus", "iOS" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:31.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "*Problem*\r\nAlert + 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. \r\n\r\n*Test Case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar table = Ti.UI.createTableView({\r\n\tstyle: Ti.UI.iPhone.TableViewStyle.GROUPED\r\n});\r\n\r\nvar data = [];\r\n\r\nfor ( i = 0; i < 20; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\twidth : Ti.UI.FILL,\r\n\t\theight : Ti.UI.FILL\r\n\t});\r\n\r\n\tvar tField = Ti.UI.createTextField({\r\n\t\twidth : '99%',\r\n\t\theight : \"100%\"\r\n\t});\r\n\r\n\trow.add(tField);\r\n\tdata.push(row);\r\n}\r\n\r\ntable.data = data;\r\n\r\nwin.add(table);\r\nwin.open();\r\n\r\nsetInterval(function() {\r\n\talert(\"ALERT!\");\r\n\tdata[0].children[0].focus();\r\n}, 5000); \r\n{code}\r\n\r\nNote:\r\nI 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% \r\n\r\n", "attachment": [ { "id": "40551", "filename": "Snímka obrazovky 2013-07-04 o 11.07.15 AM.png", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-07T22:09:48.000+0000", "size": 146650, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Alert + Focus on a TextField moves Grouped TableView to the left", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Macbook Pro, OSX 10.7.5, iOS Simulator v. 6.0 (369.2). Ti: 3.1 GA, 3.1.1GA", "comment": { "comments": [ { "id": "261087", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed on \niOS6 simulator\n3.1.0GA\n3.1.1GA\nTitanium Studio, build: 3.2.0.201307031744\n", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-09T17:38:34.000+0000", "updated": "2013-07-09T17:38:34.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }