{ "id": "64180", "key": "TIMOB-3548", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11251", "name": "Sprint 2011-16", "archived": true, "released": true, "releaseDate": "2011-04-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-03T14:00:52.000+0000", "created": "2011-04-15T03:46:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "klist", "release-1.7.0", "reported-1.6.1" ], "versions": [], "issuelinks": [ { "id": "10302", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64804", "key": "TIMOB-3733", "fields": { "summary": "Confirm TIMOB-3548", "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": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-03T14:00:52.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}
A textArea in an alertDialog will not display until after you\nchange orientation if the width is set to a percent. Will display\nfine if the width is static or not set.
\nStep 1: create a mobile project
\nStep 2: paste the example into your app.js
\nStep 3: launch the app on a android 1.6 device
\nStep 4: click the button
\nStep 5: notice that the alertDialog does not have a textArea in\nit
\nStep 6: change the orientation of the device
\nStep 7: notice that the textArea appears
\nStep 8: repeat the above steps but change the width:'90%' to\nwidth:120
\nStep 9: notice that textArea appears
\nStep 10: repeat the above steps on a non-1.6 device, and notice the\ntextArea displaying when using a % for the width
\nvar win = Ti.UI.createWindow({\n backgroundColor: 'yellow'\n});\n\nvar view = Ti.UI.createView({\n backgroundColor: 'green'\n});\n\nvar dialog = Titanium.UI.createAlertDialog({\n buttonNames : ['Save', 'Cancel'],\n title : 'Edit task name',\n androidView : view\n});\n \nvar taskNameArea = Titanium.UI.createTextArea({\n width: '90%',\n // width: 120\n});\nview.add(taskNameArea);\n\nvar button = Ti.UI.createButton({\n title: 'click',\n height: 50,\n width: 100,\n top: 20\n});\nbutton.addEventListener('click', function(e){\n dialog.show();\n});\n\nwin.add(button);\nwin.open();
\n
\nNexus S 2.3.2 TiSDK 1.6.1
\nEmulator APIs 2.2 Screen HVGA TiSDK 1.6.1
\nDroid 2.2.1 TiSDK 1.6.1
Emulator APIs 1.6 Screen QVGA TiSDK 1.6.1
\nEmulator APIs 1.6 Screen HVGA TiSDK 1.6.1
\nG1 1.6 TiSDK 1.6.1