{ "id": "85304", "key": "TIMOB-7337", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-01-31T11:25:32.000+0000", "created": "2012-01-23T10:14:36.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "1.8.0.1", "android", "v8" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2017-03-24T18:31:18.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": "Using Ti 1.8.0.1 with Android and V8, Views with height: \"auto\" and layout: \"vertical\" have their size.height and size.width properties set to 0, even after the window is opened.\r\n\r\nHere is code to reproduce:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({ backgroundColor: \"#fff\" });\r\nwin.addEventListener(\"open\", function() { \r\n\t\r\n\t//create view.\r\n\tvar view = Ti.UI.createView({ left: 0, right: 0, top: 0, layout: \"vertical\", height: \"auto\" });\r\n\t\r\n\t//create labels.\r\n\tvar label1 = Ti.UI.createLabel({ text: \"label 1\", color: \"#000\", top: 0, left: 0, height: \"auto\" });\r\n\tview.add(label1);\r\n\t\r\n\tvar label2 = Ti.UI.createLabel({ text: \"label 2\", color: \"#000\", top: 0, left: 0, height: \"auto\" });\r\n\tview.add(label2);\r\n\t\r\n\twin.add(view);\r\n\t\r\n\t//output view dimensions.\r\n\tTi.API.info(\"view width: \" + view.size.width);\r\n\tTi.API.info(\"view height: \" + view.size.height);\r\n\r\n});\r\nwin.open();\r\n{code}\r\n\r\nResults:\r\nandroid 2.2 emulator (V8): view width: 0, view height: 0 <--incorrect\r\ndroid x2 w/android 2.3.4 (V8): view width: 0, view height: 0 <--incorrect\r\niphone simulator: view width: 320, view height: 44 <--correct", "attachment": [], "flagged": false, "summary": "Android: Size.height and size.width are 0 for Views with height: \"auto\" and layout: \"vertical\"", "creator": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "180678", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Possible duplicate of TIMOB-5303. Mauro to investigate.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-26T09:42:54.000+0000", "updated": "2012-01-26T09:42:54.000+0000" }, { "id": "181228", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is a duplicate of TIMOB-5303. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-01-31T11:25:32.000+0000", "updated": "2012-01-31T11:25:32.000+0000" }, { "id": "181229", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "If that is the case, can you at least update the priority level of TIMOB-5303 to critical? It is nearly impossible to build applications to support multiple resolutions in Android without access to the size properties on any elements.", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-01-31T11:29:12.000+0000", "updated": "2012-01-31T11:29:12.000+0000" }, { "id": "181244", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Justin,\r\nthanks for your feedback. I talked with Platform Team, and they raised the priority. Will be fix ASAP. Please continue being as good as you are in the community and in this examples. I'm open to hear any opinion, bug or anything that will help to improve the platform. \r\n\r\nBest,\r\nMauro \r\n\r\nmpmiranda@appcelerator.com", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-01-31T12:11:14.000+0000", "updated": "2012-01-31T12:11:14.000+0000" }, { "id": "415682", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the linked issues.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:31:18.000+0000", "updated": "2017-03-24T18:31:18.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }