{ "id": "166369", "key": "TIMOB-24442", "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": "19275", "description": "Patch release for 6.0.x regressions or important fixes", "name": "Release 6.0.3", "archived": false, "released": true, "releaseDate": "2017-03-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-03-08T19:14:47.000+0000", "created": "2017-03-01T14:35:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "issuelinks": [ { "id": "56175", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "170435", "key": "TIMOB-25557", "fields": { "summary": "Android: View rect x and y are inconsistent", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-23T13:20:05.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "- {{Titanium.UI.View.rect}} {{x}} and {{y}} properties are not updated after a transform animation has taken place.\r\n\r\n*TEST CASE*\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'gray'}),\r\n view = Ti.UI.createView({\r\n left: 0,\r\n top: 0,\r\n width: 100,\r\n height: 100,\r\n backgroundColor: 'red'\r\n });\r\n\r\nwin.addEventListener('open', function() {\r\n Ti.API.info('Initial');\r\n Ti.API.info(' rect.x: ' + view.rect.x);\r\n Ti.API.info(' rect.y: ' + view.rect.y);\r\n\r\n view.animate({\r\n top: 200,\r\n left: 200,\r\n duration: 1000\r\n }, function() {\r\n Ti.API.info('After Animation');\r\n Ti.API.info(' rect.x: ' + view.rect.x);\r\n Ti.API.info(' rect.y: ' + view.rect.y);\r\n });\r\n})\r\nwin.add(view);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.View.rect is not updated after animation", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 847, "state": "closed", "name": "2017 Sprint 05 SDK", "startDate": "2017-02-26T17:39:21.095Z", "endDate": "2017-03-12T17:39:00.000Z", "completeDate": "2017-03-12T19:14:38.838Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "408218", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8855", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-01T15:18:11.000+0000", "updated": "2017-03-01T15:18:11.000+0000" }, { "id": "410019", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~gmathews] I believe this ticket also needs backport to 6.0.3.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T23:55:14.000+0000", "updated": "2017-03-08T23:55:14.000+0000" }, { "id": "410272", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8869", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T11:13:20.000+0000", "updated": "2017-03-09T11:13:20.000+0000" }, { "id": "410604", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix is present in 6.1.0.v20170309114832 and 6.0.3.v20170309114200. Testing can be found at https://github.com/appcelerator/titanium_mobile/pull/8855 ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:33:16.000+0000", "updated": "2017-03-09T21:33:16.000+0000" }, { "id": "419458", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Just a side-note: \r\nI've updated an app from 6.0.2 to 6.0.4 that has a view inside a view:\r\n{{window -> view a -> view b}}\r\nand I am moving \"view b\" inside \"view a\". With this patch I have to subtract the {{\"view a\" left}} position from {{\"view b\".rect.x}} because it is now using {{getLocationInWindow}} and before it was returning the x position in my parent view.\r\n\r\nPerhaps that should be added to the documentation", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-10T11:48:30.000+0000", "updated": "2017-05-10T11:48:30.000+0000" }, { "id": "419460", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "And iOS is referring to the parent view and not the window so the position is not the same!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-10T12:13:11.000+0000", "updated": "2017-05-10T12:13:11.000+0000" }, { "id": "431210", "author": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "body": "This fix has raised other problems.", "updateAuthor": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-23T10:56:22.000+0000", "updated": "2017-11-23T10:56:22.000+0000" }, { "id": "431215", "author": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-23T13:19:14.000+0000", "updated": "2017-11-23T13:19:14.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }