{ "id": "65945", "key": "TIMOB-5546", "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": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-13T03:40:44.000+0000", "created": "2011-06-01T02:00:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mnegadaylov", "key": "mnegadaylov", "displayName": "Maxim Negadaylov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T20:24:11.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Method Ti.UI.TableViewRow.add adds the child object to the next row instead of the defined in the code. \r\n{code:JavaScript}\r\nvar win = Ti.UI.currentWindow;\r\n\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\twidth: 300,\r\n\theight: 200,\r\n\ttop: 140,\r\n//\trowHeight: 30,\r\n\tleft: 10,\r\n\tbackgroundColor: '#00ACDC',\r\n\tseparatorColor: 'black',\r\n\tfontSize: 13,\r\n\tfontStyle: 'italic',\r\n\tfontFamily: 'Helvetica Neue',\r\n\tfontWeight: 'bold',\r\n});\r\n\r\nwin.add(tableView);\r\n\r\nrow1 = Ti.UI.createTableViewRow({title: 'This is row 1'});\r\nrow2 = Ti.UI.createTableViewRow({title: 'This is row 2'});\r\nrow3 = Ti.UI.createTableViewRow({title: 'This is row 3'});\r\nrow4 = Ti.UI.createTableViewRow({title: 'This is row 4'});\r\nrow5 = Ti.UI.createTableViewRow({title: 'This is row 5'});\r\nrow6 = Ti.UI.createTableViewRow({title: 'This is row 6'});\r\nrow7 = Ti.UI.createTableViewRow({title: 'This is row 7'});\r\n\r\ntableView.appendRow(row1);\r\ntableView.appendRow(row2);\r\ntableView.appendRow(row3);\r\ntableView.appendRow(row4);\r\ntableView.appendRow(row5);\r\ntableView.appendRow(row6);\r\ntableView.appendRow(row7);\r\n\r\nvar label = Ti.UI.createLabel({\r\n//\ttext: 'inner label',\r\n\twidth: 30,\r\n\theight: 20,\r\n\tbackgroundColor: 'red',\r\n\tright: 5\r\n})\r\n\r\nrow2.add(label);\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Method add works incorrectly with tableViewRow", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "410430", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T20:24:11.000+0000", "updated": "2017-03-09T20:24:11.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }