{ "id": "63427", "key": "TIMOB-2795", "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": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-01T00:19:23.000+0000", "created": "2011-04-15T03:29:46.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "module_label", "qe-testadded" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-10T11:23:01.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": "{html}

Problem

\n

A label with 100% does not show up, but a label with 'auto'\nwidth does.

\n

Tested On

\n

Titanium Mobile 1.6.0 pulled January 8th, 2011
\nBROKEN on Android Simulator 2.2
\nWORKS on iPhone Simulator 4.2

\n

Sample Code

\n

The following should show two labels. The labels only differ in\ntheir widths: auto, and 100%.

\n
\nvar win = Ti.UI.createWindow({ backgroundColor: '#000' });\n\nwin.add(Titanium.UI.createLabel({\n    text: 'You will see this label with width:auto',\n    width: 'auto',\n    top: 5\n}));\n\nwin.add(Titanium.UI.createLabel({\n    text: 'But you will not see this label with width:100%',\n    width: '100%',\n    bottom: 5\n}));\n\nwin.open();\n
\n\n

Associated Helpdesk Ticket

\n

http://developer.appcelerator.com/helpdesk/view/65241

{html}", "attachment": [ { "id": "18218", "filename": "labelwithpercentwidthlog.rtf", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T03:29:47.000+0000", "size": 26788, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Android: Label with percent width doesn't show up", "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": "BROKEN in Android Emulator 2.2, WORKS in iPhone Simulator 4.2", "comment": { "comments": [ { "id": "194734", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested with 2.0.1GA2 on a Samsung Galaxy S2 (2.3.6) as well as on the Android Emulator (2.2). Seems to work fine. Ticket closed.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-14T15:15:34.000+0000", "updated": "2012-05-14T15:15:34.000+0000" }, { "id": "207900", "author": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. \r\nTested with:
\r\nTitanium Studio, build: 2.1.1.201207121732\r\nTitanium SDK: 2.2.0.v20120716114111\r\n
Device: Android Emulator 2.2", "updateAuthor": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-16T16:51:38.000+0000", "updated": "2012-07-16T16:51:38.000+0000" }, { "id": "210939", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-01T00:18:21.000+0000", "updated": "2012-08-01T00:18:21.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }