{ "id": "87520", "key": "TIMOB-7919", "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-14T14:39:11.000+0000", "created": "2012-03-07T14:59:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-15T16:32:09.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": "The textAlign property is not respected in UI components. Regression.\r\n\r\nDoes not occur in 1.8.2 or iOS. Does not appear to be an expected UI Layout change.\r\n\r\nTested on Button, TextField, and Label.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code.\r\n\r\n{code:title=app.js}\r\nvar textAlign = Ti.UI.TEXT_ALIGNMENT_CENTER;\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttop:'80%',\r\n bottom:'5%',\r\n left:'10%',\r\n right:'10%',\r\n title:'This is the button title.',\r\n textAlign:textAlign\r\n});\r\n\r\nvar textField = Ti.UI.createTextField({\r\n top:'30%',\r\n bottom:'30%',\r\n left:'10%',\r\n right:'10%',\r\n borderWidth:'2',\r\n borderColor:'black',\r\n value:'This is the textField value.',\r\n textAlign:textAlign\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext:'This is the label text.',\r\n\ttop:'10%',\r\n bottom:'80%',\r\n left:'10%',\r\n right:'10%',\r\n textAlign:textAlign\r\n});\r\n\r\nwin.add(label);\r\nwin.add(button);\r\nwin.add(textField);\r\nwin.open();\r\n{code}\r\n\r\nExpected Result:\r\n\r\nText alignment should be centered for all UI components, as specified in the code.\r\n\r\nActual Result:\r\n\r\nText alignment is not respected. The label and button texts are higher and left-aligned. The textField text is higher.", "attachment": [ { "id": "26075", "filename": "1.8.2 textAlign correct.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-07T14:59:20.000+0000", "size": 22185, "mimeType": "image/png" }, { "id": "26076", "filename": "2.0.0 textAlign regression.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-07T14:59:20.000+0000", "size": 21857, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: UI components: textAlign property and Titanium.UI.TEXT_ALIGNMENT: alignment not respected", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 2.0.0.v20120307090205\r\nAndroid: V8, Rhino\r\nStudio: 1.0.9.201202141208\r\nOS: Snow Leopard\r\nDevices Tested: Nexus One 2.2.2, Droid3 2.3.4, Xoom 3.2.1", "comment": { "comments": [ { "id": "186731", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.0.0.v20120315140247\r\nAndroid: V8, Rhino\r\nStudio: 2.0.0.201203142055\r\nOS: Snow Leopard\r\nDevices Tested: Emulator 2.2, Emulator 2.3.3, Xoom 3.2.1", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T16:32:09.000+0000", "updated": "2012-03-15T16:32:09.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }