{ "id": "109431", "key": "TIMOB-12707", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T22:15:09.000+0000", "created": "2013-02-08T15:52:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "mobileweb" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [ { "id": "36414", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "128493", "key": "AC-3263", "fields": { "summary": "MobileWeb's lack of center:{x,y} severely limits practical use for scaling and animation.", "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" } }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": null, "updated": "2018-04-04T23:20:25.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "*Steps to reproduce:*\r\n1) open project from attachment in Titanium studio\r\n2) run it (as mobile web)\r\n\r\n*Expected result:*\r\nsee attached image bug_center_expected.png\r\n\r\n*Actual result:*\r\nsee attached image bug_center_actual.png\r\n\r\n*Code from project:*\r\n{noformat}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor: '#FFFFFF',\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'red',\r\n\tcenter: {'x': 50, 'y': 50},\r\n\twidth: 20,\r\n\theight: 70,\r\n}),\r\nview2 = Ti.UI.createView({\r\n\tbackgroundColor: 'green',\r\n\tcenter: {'x': 100, 'y': 100},\r\n\twidth: 40,\r\n\theight: 50,\r\n}),\r\nview3 = Ti.UI.createView({\r\n\tbackgroundColor: 'blue',\r\n\tcenter: {'x': 150, 'y': 150},\r\n\twidth: 60,\r\n\theight: 30,\r\n});\r\n\r\nwin.add(view);\r\nwin.add(view2); \r\nwin.add(view3); \r\n\r\nwin.open();\r\n{noformat}", "attachment": [ { "id": "35485", "filename": "bug_center_actual.png", "author": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-02-08T15:52:25.000+0000", "size": 5849, "mimeType": "image/png" }, { "id": "35486", "filename": "bug_center_expected.png", "author": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-02-08T15:52:25.000+0000", "size": 5893, "mimeType": "image/png" }, { "id": "35487", "filename": "viewCenterBug.zip", "author": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2013-02-08T15:52:25.000+0000", "size": 816694, "mimeType": "application/zip" } ], "flagged": false, "summary": "MobileWeb: Ti.UI.View.center property does not work.", "creator": { "name": "stanislav fedorenko (gl)", "key": "stanislav fedorenko (gl)", "displayName": "Stanislav Fedorenko", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 3.0.2", "comment": { "comments": [ { "id": "238164", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed that center property not working as expected. On: Titanium Studio, build: 3.0.1.201212181159\nand SDK: 3.0.23", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-12T19:07:17.000+0000", "updated": "2013-02-12T19:07:17.000+0000" }, { "id": "422875", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T22:15:09.000+0000", "updated": "2017-06-26T22:15:09.000+0000" }, { "id": "436365", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:25.000+0000", "updated": "2018-04-04T23:20:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }