{ "id": "151892", "key": "TIMOB-19697", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-02T20:11:34.000+0000", "created": "2015-10-09T11:41:52.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16904", "description": "Release 5.0.2", "name": "Release 5.0.2", "archived": true, "released": true, "releaseDate": "2015-10-01" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-09T20:13:26.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "The following sample and screenshots show that on Windows the list item height is always the full screen height, regardless of different ways to set the list item height that work fine on iOS.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#CCC'\r\n});\r\n\r\nwin.add(Ti.UI.createListView({\r\n\ttemplates: {\r\n\t\ttplHeight: {\r\n\t\t\tproperties: {\r\n\t\t\t\theight: 100\r\n\t\t\t},\r\n\t\t childTemplates: [\r\n\t\t {\r\n\t\t type: 'Ti.UI.Label',\r\n\t\t bindId: 'title'\r\n\t\t }\r\n\t\t ]\r\n\t\t},\r\n\t\tviewHeight: {\r\n\t\t\tproperties: {\r\n\t\t\t\theight: Ti.UI.SIZE\r\n\t\t\t},\r\n\t\t childTemplates: [\r\n\t\t {\r\n\t\t type: 'Ti.UI.View',\r\n\t\t properties: {\r\n\t\t height: 100\r\n\t\t },\r\n\t\t\t\t childTemplates: [\r\n\t\t\t\t {\r\n\t\t\t\t type: 'Ti.UI.Label',\r\n\t\t\t\t bindId: 'title'\r\n\t\t\t\t }\r\n\t\t\t\t ]\r\n\t\t }\r\n\t\t ]\r\n\t\t}\r\n\t},\r\n\tsections: [\r\n\t\tTi.UI.createListSection({\r\n\t\t\titems: [\r\n\t\t\t\t{\r\n\t\t\t\t\tproperties: {\r\n\t\t\t\t\t\ttitle: 'Built-in tpl'\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tproperties: {\r\n\t\t\t\t\t\ttitle: 'Built-in tpl with height',\r\n\t\t\t\t\t\theight: 100\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\ttemplate: 'tplHeight',\r\n\t\t\t\t\ttitle: {\r\n\t\t\t\t\t\ttext: 'Template with height on root'\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\ttemplate: 'viewHeight',\r\n\t\t\t\t\ttitle: {\r\n\t\t\t\t\t\ttext: 'Template with height on view'\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tproperties: {\r\n\t\t\t\t\t\ttitle: 'Built-in tpl'\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t})\r\n\t]\r\n}));\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "56958", "filename": "IMG_9737.PNG", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-09T11:41:48.000+0000", "size": 68784, "mimeType": "image/png" }, { "id": "56957", "filename": "Screen Shot 2015-10-09 at 13.38.07.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-09T11:41:48.000+0000", "size": 18415, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: No way to set ListItem height", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.0.2 GA\r\nCLI 5.0.2", "closedSprints": [ { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "368414", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/459", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-30T06:43:03.000+0000", "updated": "2015-10-30T06:43:03.000+0000" }, { "id": "369450", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 8.1 Pro\r\nAppc core: 5.1.0-43\r\nAppc NPM: 4.2.1\r\nTi SDK: 5.1.0.v20151104190037\r\nLumia 930 (8.1)\r\n\r\nUsing the code provide, ListItem height can now be set\r\n\r\n!http://puu.sh/lfxqP/0b767befce.png!\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-11-09T20:13:20.000+0000", "updated": "2015-11-09T20:13:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }