{ "id": "168412", "key": "TIMOB-24825", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-17T17:22:23.000+0000", "created": "2017-06-15T01:24:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "55217", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "168155", "key": "TIMOB-24793", "fields": { "summary": "Android: Ti.UI.View.center is incorrectly calculated", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-18T17:50:10.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "- The {{center}} property of {{View}} is incorrectly calculated, producing invalid positioning.\r\n\r\n{code:js}\r\nvar window = Ti.UI.createWindow({backgroundColor: 'gray'}),\r\n a = Ti.UI.createView({backgroundColor: 'red', width: 200, height: 200, top: 0, left: 0}),\r\n b = Ti.UI.createView({backgroundColor: 'blue', width: 100, height: 100, center: {x: 150, y: 150}}),\r\n btn_a = Ti.UI.createButton({title: 'TOP LEFT', bottom: 0, left: 0, width: '50%'}),\r\n btn_b = Ti.UI.createButton({title: 'ZERO', bottom: 0, right: 0, width: '50%'});\r\n\r\nbtn_a.addEventListener('click', function(){\r\n b.center = {x: '50%', y: '50%'};\r\n});\r\n\r\nwindow.add([btn_a, a, b]);\r\nwindow.open();\r\n{code}\r\n\r\nExpected:\r\nThe \"center\" property is supposed to be relative to the parent's top-left corner.", "attachment": [], "flagged": false, "summary": "Windows: Ti.UI.View.center is incorrectly calculated", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 939, "state": "closed", "name": "2017 Sprint 17 SDK", "startDate": "2017-08-13T23:08:29.095Z", "endDate": "2017-08-27T23:08:00.000Z", "completeDate": "2017-08-27T21:10:54.125Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "422536", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1022", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-22T04:49:40.000+0000", "updated": "2017-06-22T04:49:40.000+0000" }, { "id": "425987", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1064", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-07T02:18:43.000+0000", "updated": "2017-08-07T02:18:43.000+0000" }, { "id": "426273", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kiguchi] Master is merged waiting for 6_2_X:", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-08T21:04:43.000+0000", "updated": "2017-08-08T21:04:43.000+0000" }, { "id": "426905", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in SDK Version 7.0.0.v20170818091652 and SDK Version: 6.2.0.v20170816173122\r\n\r\nTest and other information can be found at:\r\nMaster: https://github.com/appcelerator/titanium_mobile_windows/pull/1064\r\n6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1069", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-18T17:50:03.000+0000", "updated": "2017-08-18T17:50:03.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }