{ "id": "141928", "key": "TIMOB-18267", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-12-19T23:28:22.000+0000", "created": "2014-12-19T17:02:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "16676", "description": "Release 3.4.1", "name": "Release 3.4.1", "archived": false, "released": true, "releaseDate": "2014-11-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T17:13:30.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": "When I add something to the ListView row using template, data do not show properly, but if I click on the row, data show. It works as expected on android.\r\n\r\nh3. Testing Environment: \r\nTitanium SDK: 3.4.1\r\nTitanium CLI: 3.4.1\r\niOS Version: 8.1 \r\nOS X Version: 10.9.5,\r\nAppcelerator Studio: 3.4.1\r\n\r\nh3. Test Case\r\n{code:title=app.js}\r\nvar myTemplate = {\r\n\r\n\tchildTemplates : [{// Image justified left\r\n\t\ttype : 'Titanium.UI.View', // Use an image view for the image\r\n\t\tproperties : {// Sets the image view properties\r\n\t\t\twidth : Ti.UI.FILL,\r\n\t\t\theight : '80dp',\r\n\t\t\tlayout : 'horizontal',\r\n\t\t\t//touchEnabled:'false'\r\n\t\t},\r\n\t\tchildTemplates : [{// Title\r\n\t\t\ttype : 'Ti.UI.Label', // Use a label for the title\r\n\t\t\tbindId : 'info', // Maps to a custom info property of the item data\r\n\t\t\tproperties : {// Sets the label properties\r\n\t\t\t\tcolor : 'black',\r\n\t\t\t\tfont : {\r\n\t\t\t\t\tfontFamily : 'Arial',\r\n\t\t\t\t\tfontSize : '14dp',\r\n\r\n\t\t\t\t},\r\n\t\t\t\tleft : 10\r\n\t\t\t},\r\n\r\n\t\t}, {// Subtitle\r\n\t\t\ttype : 'Ti.UI.Label', // Use a label for the subtitle\r\n\t\t\tbindId : 'es_info', // Maps to a custom es_info property of the item data\r\n\t\t\tproperties : {// Sets the label properties\r\n\t\t\t\tcolor : 'black',\r\n\t\t\t\tfont : {\r\n\t\t\t\t\tfontFamily : 'Arial',\r\n\t\t\t\t\tfontSize : '14dp'\r\n\t\t\t\t},\r\n\t\t\t\tleft : '10dp',\r\n\t\t\t},\r\n\r\n\t\t}, {// Subtitle\r\n\t\t\ttype : 'Ti.UI.Label', // Use a label for the subtitle\r\n\t\t\tbindId : 'ans', // Maps to a custom es_info property of the item data\r\n\t\t\tproperties : {// Sets the label properties\r\n\t\t\t\tcolor : 'black',\r\n\t\t\t\tfont : {\r\n\t\t\t\t\tfontFamily : 'Arial',\r\n\t\t\t\t\tfontSize : '14dp'\r\n\t\t\t\t},\r\n\t\t\t\tleft : '10dp',\r\n\t\t\t},\r\n\r\n\t\t}],\r\n\t}]\r\n};\r\n\r\nvar itemData = [];\r\n\r\nfor (var i = 0; i < 20; i++) {\r\n\titemData.push({\r\n\r\n\t\tinfo : {\r\n\t\t\ttext : 'Hello'\r\n\t\t},\r\n\t\tes_info : {\r\n\t\t\ttext : 'How Are You?'\r\n\t\t},\r\n\t\tans : {\r\n\t\t\ttext : 'Fine'\r\n\t\t}\r\n\r\n\t});\r\n}\r\n\r\nvar section = Ti.UI.createListSection({});\r\nsection.setItems(itemData);\r\n\r\nvar list = Ti.UI.createListView({\r\n\tsections : [section],\r\n\ttemplates : {\r\n\t\t'template' : myTemplate\r\n\t},\r\n\tdefaultItemTemplate : 'template',\r\n\ttop : 20,\r\n\r\n});\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : 'ListView',\r\n\tbackgroundColor : '#fff'\r\n});\r\nwin.add(list);\r\nwin.open();\r\n\r\n{code}\r\n\r\nThanks.", "attachment": [], "flagged": false, "summary": "iOS: ListView template shows unwanted behaviour. ", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [ { "id": "337230", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is a difference in behavior on iOS and android. On iOS an unspecified height results in the cell having a height of 44dp. On Android it probably follows SIZE behavior. These are platform native behaviors. \r\n\r\nTo fix add the following to your template\r\n{code}\r\nproperties:{height:Ti.UI.SIZE}\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-19T23:28:22.000+0000", "updated": "2014-12-19T23:28:22.000+0000" }, { "id": "413728", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:13:30.000+0000", "updated": "2017-03-20T17:13:30.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }