{ "id": "168074", "key": "AC-5010", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-06-07T19:24:38.000+0000", "created": "2017-06-02T21:55:07.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T19:24:38.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "To reproduce:\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#ffffff', \r\n\ttitle:'Testing Center Property',\r\n\tfullscreen: true\r\n});\r\nvar box1 = Ti.UI.createView({\r\n\twidth: '120dp',\r\n\theight: '120dp',\r\n\tborderRadius: '12dp',\r\n\tcenter:{x:'70%', y:'50%'}\r\n});\r\nbox1.backgroundColor = \"red\"; \r\nvar box2 = Ti.UI.createView({\r\n\twidth: '120dp',\r\n\theight: '120dp',\r\n\tborderRadius: '12dp'\r\n});\r\nbox2.backgroundColor = \"blue\";\r\nbox2.center = {x:'10%', y:'10%'};\r\nwin.add(box1);\r\nwin.add(box2);\r\nwin.open();\r\n\r\nOn iOS the behavior is as expected with the blue and red boxes centered on the points given. \r\n\r\nOn Android the red box, where the center property is set *within *the createView method, is displayed correctly at the center point given. On android the blue box, where the center property is set *outside *the createView method, is shown at the point {x:'50%' , y:'50%'} as when no coordinates are given at all. ", "attachment": [], "flagged": false, "summary": "Android: Center property cannot be set outside of createView method", "creator": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bscofield", "key": "bscofield", "displayName": "Ben Scofield", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 6.0.4.GA ", "comment": { "comments": [ { "id": "420920", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, can you test this on SDK 6.1.0.GA? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-06-05T17:40:38.000+0000", "updated": "2017-06-05T17:40:38.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }