{ "id": "104806", "key": "TIMOB-11739", "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": "15117", "description": "2013 Sprint 12 BB", "name": "2013 Sprint 12 BB", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-18T01:01:42.000+0000", "created": "2012-11-10T17:33:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "3.1.2", "blackberry", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "25475", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "105812", "key": "TIMOB-11926", "fields": { "summary": "BlackBerry: Implement text align on label", "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": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:31.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#f00'\r\n});\r\n \r\nwin.open();\r\n\r\n\r\nvar lbll = Ti.UI.createLabel({\r\n text:'left',\r\n top:0,\r\n width:'100%',\r\n backgroundColor:'#fff',\r\n textAlign:'left'\r\n});// \r\nwin.add(lbll);\r\n\r\n \r\nvar lblr = Ti.UI.createLabel({\r\n text:'right',\r\n top:50,\r\n width:'100%',\r\n backgroundColor:'#fff',\r\n textAlign:'right'\r\n});// \r\nwin.add(lblr);\r\n \r\n \r\n \r\nvar lblc = Ti.UI.createLabel({\r\n text:'center',\r\n top:100,\r\n width:'100%',\r\n backgroundColor:'#fff',\r\n textAlign:Ti.UI.TEXT_ALIGNMENT_CENTER\r\n});// \r\nwin.add(lblc);\r\n\r\nvar tf = Ti.UI.createTextField({\r\n\ttop: 150,\r\n\tvalue: 'hello world!',\r\n\ttextAlign:'center'\r\n});\r\nwin.add(tf);\r\n{code}\r\n\r\nResult attached", "attachment": [ { "id": "33397", "filename": "capture-7.png", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-11-10T17:33:49.000+0000", "size": 42323, "mimeType": "image/png" } ], "flagged": false, "summary": "BlackBerry: Titanium.UI.Label - textAlign not working", "creator": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Simulator BB OS 10.0.9.386 \r\nOsX Mountain Lion\r\n\r\nTi SDK\r\n\r\nversion=2.2.0\r\nmodule_apiversion=2\r\ntimestamp=10/19/12 11:58\r\ngithash=6bf86d6\r\n", "comment": { "comments": [ { "id": "251282", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can verify this. In some of my Alloy unit testing I assert that certain properties are present and defined on proxy objects. This works well in most cases, but fails anytime I try to check for textAlign on a Ti.UI.Label. It's as if the property doesn't even exist, it's totally undefined, even when assigning it as in the test case above.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T15:48:14.000+0000", "updated": "2013-05-10T15:48:14.000+0000" }, { "id": "251286", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like we only support the alignment constants (ex: TEXT_ALIGNMENT_LEFT).\nNeed to implement support for parsing string values (ex: \"left\").", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-10T15:59:48.000+0000", "updated": "2013-05-10T15:59:48.000+0000" }, { "id": "256018", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Modified test case to also test \"left\" alignment. Also added a text field to verify that works as well.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-04T23:51:21.000+0000", "updated": "2013-06-04T23:51:21.000+0000" }, { "id": "256019", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created pull request [#76|https://github.com/appcelerator/titanium_mobile_blackberry/pull/76] for master branch.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-04T23:56:17.000+0000", "updated": "2013-06-04T23:56:17.000+0000" }, { "id": "279114", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "textAlign working fine for label.\r\nHence closing as fixed.\r\n\r\nVerified with environment\r\n\r\nAppcelerator Studio: 3.2.0.201311120707\r\nSDK:3.2.0.v20131111174605\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0\r\ntitanium-code-processor: 1.0.3\r\nXcode:5.0.1\r\nDevice: Blackeberry Z 10\r\nOS: Mac OSX 10.9\r\nBB OS 10.0.10.261", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-12T11:19:00.000+0000", "updated": "2013-11-12T11:19:00.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }