{ "id": "88676", "key": "TIMOB-8262", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-26T13:38:30.000+0000", "created": "2012-03-23T21:29:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-and031912", "qe-nfc" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-26T13:38: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Steps to reproduce:\r\n1. Put the following code in app.js:\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'black'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor:'white',\r\n\twidth:300,\r\n\theight:300\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}\r\n\r\n2. In tiapp.xml, replace ti.ui.defaultunit with:\r\n{code:title=tiapp.xml}\r\nabc\r\n{code}\r\n\r\n3. Launch to Android\r\n\r\nActual: A white view does not appear. See attachment.\r\nExpected: A white square view should appear.\r\n\r\nNote: \r\n* The above code works as expected on iOS. See attachment.", "attachment": [ { "id": "26550", "filename": "android.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-23T21:29:48.000+0000", "size": 19788, "mimeType": "image/png" }, { "id": "26551", "filename": "ios.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-23T21:29:48.000+0000", "size": 14333, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Layout: When ti.ui.defaultunit is set to an invalid value, views that use the default unit will not be displayed", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 2.0.0.v20120322190311\r\nRuntime: v8\r\nTitanium Studio, build: 2.0.0.201203221554\r\nDevice: Galaxy Nexus (4.0.2)", "comment": { "comments": [ { "id": "188480", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The behavior for an invalid default unit is not currently specified, but default to system units is probably a valid expectation:\r\nhttps://wiki.appcelerator.org/display/guides2/UI+Composite+Layout+Behavior+Spec\r\n\r\nWe should make a minor update to the spec and fix this", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-24T16:50:01.000+0000", "updated": "2012-03-24T16:50:01.000+0000" }, { "id": "188665", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120325213306\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203262445\r\nDevice: Device: Galaxy Nexus (4.0.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-26T13:38:17.000+0000", "updated": "2012-03-26T13:38:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }