{ "id": "98179", "key": "TIMOB-10204", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-03-27T08:49:02.000+0000", "created": "2012-07-26T21:05:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "ipass1" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:01:44.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When creating a Button and setting the \"textAlign\" with one of the\r\nTEXT_ALIGN_*** constants the text is not aligned properly.\r\nIf you instead use a string value (ex: \"right\") it seems to work.\r\n\r\nh3. Button.textAlign example\r\n{code:javascript}\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: \"Click me!\",\r\n\ttextAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT, // <-- this DOES NOT work\r\n\t//textAlign: \"right\", <--- this works\r\n\tbackgroundColor: 'red',\r\n\twidth: 300, height: 50\r\n});\r\nwin.add(btn);\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Button.textAlign does not work with Ti.UI.TEXT_ALIGN_*** constants.", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "244263", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "according to titanium documentation \r\n\r\nhttp://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.UI.Button-method-setTextAlign\r\n\r\nit doesn't specified that u have to use \r\n\"Ti.UI.TEXT_ALIGNMENT_RIGHT\"\r\n\r\nit should used in text field\r\n\r\nhttp://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.UI.TextField-property-textAlign\r\n\r\n\r\nso it cannot be treated as a bug.\r\n\r\nIssue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:49:02.000+0000", "updated": "2013-03-27T08:49:02.000+0000" }, { "id": "414030", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:01:44.000+0000", "updated": "2017-03-20T22:01:44.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }