{ "id": "134004", "key": "TIMOB-17628", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-22T19:19:59.000+0000", "created": "2014-07-31T23:18:02.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport", "layout", "listview" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "55822", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "169561", "key": "TIMOB-25173", "fields": { "summary": "Android: Size/Fill layout conflicts are not handled the same as iOS and Windows", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-22T23:17:58.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\nThere is a parity issue, we have {{FILL}} ListView on iOS and {{SIZE}} ListView on Android.\r\n\r\nh4. Steps to reproduce \r\n- Create a simple project.\r\n- Pase the code into app.js: \r\n{code}var win = Ti.UI.createWindow({backgroundColor: 'Black'});\r\nvar view = Ti.UI.createView({\r\n\theight : Ti.UI.SIZE,\r\n\twidth : Ti.UI.SIZE\r\n});\r\nvar listView = Ti.UI.createListView();\r\nvar sections = [];\r\n\r\nvar firstSection = Ti.UI.createListSection();\r\nvar firstDataSet = [\r\n {properties: { title: 'Hello'}},\r\n];\r\nfirstSection.setItems(firstDataSet);\r\nsections.push(firstSection);\r\nlistView.sections = sections;\r\nview.add(listView);\r\nwin.add(view);\r\nwin.open();\r\n\r\nview.addEventListener('postlayout', function(e){\r\n\tTi.API.info(e.source.size.height);\r\n});\r\nTi.API.info('Height=' + view.toImage().height);{code}\r\n- Test in devices (iOS and Android)\r\n\r\n\r\nh4. Actual Results\r\n\r\nOutput 480 on iOS and 32 on Android.\r\n", "attachment": [], "flagged": false, "summary": "Android: - ListView: different behavior while calculating height on Android and iOS (parity issue)", "creator": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "subtasks": [], "reporter": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "environment": " Titanium SDK: 3.3.0.GA and 3.2.3.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n iOS Simulator: 7.1\r\n Android API Level: 17 and 19\r\n", "comment": { "comments": [ { "id": "324678", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4\r\niOS simulator : iPhone Retina (3.5-inch), iOS 7.0.3\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T08:47:07.000+0000", "updated": "2014-09-19T08:48:26.000+0000" }, { "id": "427047", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR. PR merged. Changes are seen in SDK versions:\r\n6.2.0.v20170822113609\r\n7.0.0.v20170822142802", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-22T19:19:53.000+0000", "updated": "2017-08-22T23:17:50.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }