{ "id": "117092", "key": "AC-2341", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-07-11T16:35:01.000+0000", "created": "2013-07-11T13:51:59.000+0000", "labels": [ "defect", "ios", "listview", "parity", "titanbeta" ], "versions": [], "issuelinks": [ { "id": "30134", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "114532", "key": "TIMOB-13901", "fields": { "summary": "iOS: ListView: Cannot set dynamic height on ItemTemplate (Ti.UI.SIZE)", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:21.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\nListView items (rows) don't autosize (height) correctly in iOS. They do size correctly on the Android emulator, therefore this is a parity issue.\r\n\r\nh2. Testcase\r\nRun the following code and notice that the subcaption (the smaller, longer text) doesn't wrap or cause the row to get taller. It does on Android.\r\n\r\n{panel:title=app.js}\r\n{code}\r\nTi.UI.createWindow({\r\n backgroundColor:'#fff',\r\n url:'win1.js',\r\n layout:'vertical',\r\n exitOnClose:true,\r\n navBarHidden:true,\r\n backgroundColor:'black'\r\n }).open();\r\n{code}\r\n{panel}\r\n\r\n{panel:title=win1.js}\r\n{code}\r\nvar win1=Ti.UI.currentWindow;\r\n\r\nvar ListBoxFont={fontSize:'20dp',fontFamily:'Helvetica Neue'};\r\nvar LeftRightChildTemplate={\r\n // we really shouldn't have to specify this size for iOS:\r\n properties:{height:Ti.UI.SIZE}, // DP(70)},\r\n childTemplates:[{type:'Ti.UI.Label',\r\n bindId:'RowTitle',\r\n properties:{ font:ListBoxFont,\r\n textAlign:Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n width:Ti.UI.SIZE,\r\n height:Ti.UI.SIZE,\r\n color:'white',\r\n top:'5dp',\r\n left:'5dp'\r\n }},\r\n {type:'Ti.UI.Label',\r\n bindId:'RowCounter',\r\n properties:{ font:ListBoxFont,\r\n textAlign:Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n width:Ti.UI.SIZE,\r\n height:Ti.UI.SIZE,\r\n color:'white',\r\n top:'5dp',\r\n right:'25dp'\r\n }},\r\n {type:'Ti.UI.Label',\r\n bindId:'SubCaption',\r\n properties:{ font:{fontSize:'13',\r\n fontFamily:'Helvetica Neue'},\r\n textAlign:Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n width:Ti.UI.SIZE,\r\n height:Ti.UI.SIZE,\r\n ellipsize:false,\r\n color:'white',\r\n top:'31dp',\r\n left:'5dp',\r\n right:'55dp',\r\n bottom:'5dp'\r\n }}\r\n ]};\r\nvar MyListbox=Ti.UI.createListView({\r\n backgroundColor:'black',\r\n templates:{'Template':LeftRightChildTemplate},\r\n defaultItemTemplate:'Template'\r\n });\r\n\r\nvar SingleSection=Ti.UI.createListSection({headerTitle:'Single Section'});\r\nfor (var i=1; (i <= 4); i++)\r\n SingleSection.appendItems([{RowTitle:{text:'Row '+i},\r\n SubCaption:{text:'The quick brown fox jumped over the lazy dogs back.'},\r\n RowCounter:{text:'123'},\r\n properties:{Count:123}}]);\r\nMyListbox.sections=[SingleSection];\r\n\r\nwin1.add(MyListbox);\r\nwin1.open();\r\n{code}\r\n{panel}\r\n", "attachment": [ { "id": "40665", "filename": "AndroidListViewTest.png", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-07-11T13:51:59.000+0000", "size": 19608, "mimeType": "image/png" }, { "id": "40664", "filename": "iPhoneListViewTest.png", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-07-11T13:51:59.000+0000", "size": 21211, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ListView items (rows) don't autosize (height) correctly (parity)", "creator": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "environment": "- iOS\r\n- iPhone simlulator\r\n- Android 2.2 emulator\r\n- Titanium Mobile SDK 3.1.1.GA\r\n- Titanium Studio 3.1.0...\r\n", "comment": { "comments": [ { "id": "261446", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking as a duplicate of the linked issue. The issue is one of trying to come up with a general solution that is performant. Would you mind adding your insights onto the linked ticket?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T16:34:35.000+0000", "updated": "2013-07-11T16:34:35.000+0000" }, { "id": "261447", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking as duplicate of the linked issue.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T16:35:01.000+0000", "updated": "2013-07-11T16:35:01.000+0000" }, { "id": "280890", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP of TIMOB-13901", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T07:14:42.000+0000", "updated": "2013-11-24T07:14:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }