{ "id": "61645", "key": "TIMOB-1013", "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": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:57.000+0000", "created": "2011-04-15T02:41:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

if the left property on the table view is 30 or less it does not\nhappen
\ncode:

\n
\nvar win = Titanium.UI.createWindow();\n \nfunction addRow()\n{\n    var row = Ti.UI.createTableViewRow({height:50});\n    var tf1 = Titanium.UI.createTextField({\n        hintText:'Enter todo here',\n        color:'#336699',\n        height:45,\n        left:40,\n        width:280,\n        borderStyle:Titanium.UI.INPUT_BORDERSTYLE_NONE\n    }); \n    row.add(tf1);\n    row.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;\n    row.className = 'control';\n    return row;\n}\n\n\n// create table view data object\nvar data = [];\n\ndata[0] = addRow();\n\nvar tableView = Ti.UI.createTableView({\n    data:data,  \n    style: Titanium.UI.iPhone.TableViewStyle.GROUPED\n});\nwin.add(tableView); \n\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "table view row with text field and left > 35 = shift in table view on text field focus", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124570", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Yep, I've hit this too when embedding a text field on the\nright:

\n
\nvar isAndroid = Ti.Platform.name == 'android';\n\nvar decksWin = Ti.UI.createWindow({title:'Decks',\n                                    backgroundColor: '#000',\n                                    barColor: \"#000\"});\nvar decksTab = Ti.UI.createTab({title: \"Decks\", window: decksWin});\nvar tabGroup = Titanium.UI.createTabGroup();\ntabGroup.addTab(decksTab);\ntabGroup.open();\n\ndecksWin.orientationModes = [\n    Titanium.UI.PORTRAIT,\n    Titanium.UI.LANDSCAPE_LEFT,\n    Titanium.UI.LANDSCAPE_RIGHT\n];\n\nvar tv = Ti.UI.createTableView(\n    {top: 0, left: 0, right: 0, bottom: 0,\n     style: Titanium.UI.iPhone.TableViewStyle.GROUPED});\nvar tdata = [];\n\nvar row = Ti.UI.createTableViewRow();\nvar t1 = Ti.UI.createTextField(\n    {right: 10,\n     width: 100,\n     autocapitalization:Titanium.UI.TEXT_AUTOCAPITALIZATION_NONE,\n     returnKeyType:Titanium.UI.RETURNKEY_NEXT,\n     value: \"\",\n     hintText: \"Required\"\n    });\nrow.add(t1);\n\n// not sure why this is necessary\nrow.addEventListener(\"click\", function () {\n                         t1.focus();\n                     });\n\nvar l1 = Ti.UI.createLabel({text:\"Username\",\n                            width: 100,\n                            left:10,\n                            font:{fontWeight:\"bold\", fontSize:16}});\nrow.add(l1);\ntdata.push(row);\n\ntv.data = tdata;\ndecksWin.add(tv);\n
{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:41:30.000+0000", "updated": "2011-04-15T02:41:30.000+0000" }, { "id": "124571", "author": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(if in landscape mode when you start editing, the table never\nreturns until the user manually scrolls it back)

{html}", "updateAuthor": { "name": "damienelmes", "key": "damienelmes", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:41:30.000+0000", "updated": "2011-04-15T02:41:30.000+0000" }, { "id": "124572", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Okay, what's going on here in the first case is that the text\nfield specified to have a width of 280, but it has a a left of 40,\ninside the tableRow (which has a margin of 10 inherent because it's\na grouped style. So its frame in the window goes from x=40 to\nx=330. So in this case it's end developer error, as the scrolling\nto fit the text field in view is intentional; to solve this, have\nthe width not be specified, and it'll be the remaining 260 pixels\n(there's a 10 pixel margin on the other side as well)\nautomatically.

\n

I'm looking into the landscape issue now.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:41:30.000+0000", "updated": "2011-04-15T02:41:30.000+0000" }, { "id": "124573", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [2f54f0ea7501b0b762f3742a2b6ee05767949932])\nCloses #1013 by making\nModifyScrollViewForKeyboardHeightAndContentHeightWithResponderRect\ncompensate for being in landscape mode. \nhttp://github.com/appcelerator/titanium_mobile/commit/2f54f0ea7501b...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:41:31.000+0000", "updated": "2011-04-15T02:41:31.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }