{ "id": "87924", "key": "TIMOB-7989", "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-04-04T14:51:46.000+0000", "created": "2012-03-14T10:15:29.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_view", "qe-testadded", "regression" ], "versions": [], "issuelinks": [ { "id": "15777", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87931", "key": "TIMOB-8035", "fields": { "summary": "Samples: RSS Reader: Android: app ui layout is severely visually compromised", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-04T14:51:46.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": "h1. Problem\r\nSpecifying the units on a dimension causes a view to not display.\r\n\r\nh2. Regression Point\r\nThis wasn't broken in 1.8.2, but master builds exhibit this bug.\r\n\r\nh2. Reproduction\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'Labels with dp or dip do not show up!',\r\n color: '#fff',\r\n height: '30dp',\r\n backgroundColor: 'red'\r\n}));\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'This one will show up.',\r\n color: '#fff',\r\n height: 30,\r\n backgroundColor: 'blue'\r\n}));\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: 'And this one will not show up either.',\r\n color: '#fff',\r\n height: '30dip',\r\n backgroundColor: 'green'\r\n}));\r\n\r\nwin.add(Ti.UI.createView({\r\n width: '30dp', height: '30dp',\r\n backgroundColor: 'purple',\r\n top: '0dp', left: '0dp'\r\n}));\r\n\r\nwin.add(Ti.UI.createView({\r\n width: '30dip', height: '30dip',\r\n backgroundColor: 'orange',\r\n top: '0dip', right: '0dip'\r\n}));\r\n\r\nwin.add(Ti.UI.createView({\r\n width: 30, height: 30,\r\n backgroundColor: 'pink',\r\n bottom: 0, left: 0\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. Tested On\r\n\r\nh3. Testing with 2.0.0\r\nversion=2.0.0\r\nmodule_apiversion=2\r\ntimestamp=03/14/12 09:03\r\ngithash=a70a010\r\n\r\nBROKEN on Samsung EPIC 4G (Android 2.3.7)\r\nBROKEN on Galaxy TAB 7.0 Plus (Android 3.2)\r\n\r\n{code:title=Console Output}\r\n03-14 13:13:56.945: I/ActivityManager(227): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.dawson.play2012/.PlayActivity bnds=[365,58][475,176] } from pid 323\r\n03-14 13:13:57.027: I/TiRootActivity(4574): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n03-14 13:13:57.480: W/TiApplication(4574): (KrollRuntimeThread) [451,451] Registering module with name already in use.\r\n03-14 13:13:57.480: E/TiApplication(4574): (KrollRuntimeThread) [0,451] APP PROXY: ti.modules.titanium.app.AppModule@405bb108\r\n03-14 13:13:57.628: I/TiRootActivity(4574): (main) [0,0] checkpoint, on root activity resume. activity = com.dawson.play2012.PlayActivity@4059ce00\r\n03-14 13:13:57.703: I/ActivityManager(227): Displayed com.dawson.play2012/.PlayActivity: +677ms\r\n{code}\r\n\r\nh3. Testing with 1.8.2\r\nWORKS on Samsung EPIC 4G (Android 2.3.7)\r\nWORKS on Galaxy TAB 7.0 Plus (Android 3.2)", "attachment": [], "flagged": false, "summary": "Android: Specifying Units Breaks Views", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "187170", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.0.v20120319003254 with v8/rhino on LG Slate 3.1 and Emulator 2.3.3", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T13:28:54.000+0000", "updated": "2012-03-19T13:28:54.000+0000" }, { "id": "189881", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-04T14:51:15.000+0000", "updated": "2012-04-04T14:51:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }