{ "id": "169848", "key": "TIMOB-25325", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-10-30T23:21:19.000+0000", "created": "2017-09-20T22:01:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-14T01:04:34.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": "h5. Description\r\nWhen Click event is fired on Ti.UI.Button, the obejct in the event parameter is not provided x,y coordinates of the click location\r\n\r\nh5. Steps to reproduce\r\nRun attached Alloy project\r\nClick on the test button \r\nLog statement in index.js for the click event of button to print x, y coordingates will print NaN instea of the actual click coordinates \r\n\r\nh5. additional information\r\nAttached environment details: \r\n [^tiInfo (1).txt] \r\nattached test app: \r\n [^TestButtonClick.zip] ", "attachment": [ { "id": "63324", "filename": "TestButtonClick.zip", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-20T22:01:14.000+0000", "size": 7837051, "mimeType": "application/zip" }, { "id": "63325", "filename": "tiInfo (1).txt", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-20T22:00:59.000+0000", "size": 7686, "mimeType": "text/plain" } ], "flagged": false, "summary": "Windows: Click event of Button does not provide X, Y coordinates", "creator": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 951, "state": "closed", "name": "2017 Sprint 20 SDK", "startDate": "2017-09-24T17:50:18.277Z", "endDate": "2017-10-08T17:50:00.000Z", "completeDate": "2017-10-09T20:38:07.840Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428500", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1118", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-27T00:58:26.000+0000", "updated": "2017-09-27T00:58:26.000+0000" }, { "id": "428552", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "6_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1123", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-09-27T23:55:29.000+0000", "updated": "2017-09-27T23:55:29.000+0000" }, { "id": "428822", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified in 6.3.0.v20171006185117 and 7.0.0.v20171009065347", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-10-09T15:09:58.000+0000", "updated": "2017-10-09T15:09:58.000+0000" }, { "id": "429375", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kiguchi] We just tested this fix out and it does send back coordinates but it only sends x=150, y=150 no matter where you click. \r\n", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-20T21:24:47.000+0000", "updated": "2017-10-20T21:24:47.000+0000" }, { "id": "429376", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~vvazquezmontero] Yes. That's the platform component limitation, it always returns center coordinates of the button on Windows.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-20T21:42:09.000+0000", "updated": "2017-10-20T21:42:09.000+0000" }, { "id": "429377", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you Kota!", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-20T21:55:11.000+0000", "updated": "2017-10-20T21:55:11.000+0000" }, { "id": "429462", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening, it returns wrong Y-coordinate.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-23T21:30:51.000+0000", "updated": "2017-10-23T21:30:51.000+0000" }, { "id": "429473", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/1149\r\n6_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1150", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-23T23:22:36.000+0000", "updated": "2017-10-23T23:22:36.000+0000" }, { "id": "429711", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[CR & FR passed & merged for 6_3_X|https://github.com/appcelerator/titanium_mobile_windows/pull/1150].", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-10-26T22:36:14.000+0000", "updated": "2017-10-26T22:36:14.000+0000" }, { "id": "430180", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kiguchi] Hello Kota, \r\nUser has tested with SDK and X, Y coordinates still dont provide center of the button when using different width and height. I've confirmed this on my own. ", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-06T21:03:49.000+0000", "updated": "2017-11-06T21:03:49.000+0000" }, { "id": "430188", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~vvazquezmontero] It is merged to 6_3_X but it is not included in 6.3.0. We are going to push it to our nightly server builds [6.3.1|http://builds.appcelerator.com/#6_3_X] but since we expect 7.0.0 RC pretty soon (I guess), it might be available as of 7.0.0.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-06T23:56:42.000+0000", "updated": "2017-11-06T23:56:42.000+0000" }, { "id": "430438", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged. [~kiguchi], with SDK 7.0.0.v20171110104246, When pushing the button, it seems like I'm getting X,Y coordinates within the button. Based on expected results, it's supposed to return the exact same X,Y value representing the center of the button. Is it expected to return different X,Y value pairs each time I hit the button?", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-11T01:27:41.000+0000", "updated": "2017-11-11T01:32:02.000+0000" }, { "id": "430441", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] Yes, it should always return center coordinate of the button. For instance if button has {{width=100, height=50}}, it should always return {{x=50, y=25}}.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-11T03:47:34.000+0000", "updated": "2017-11-11T03:47:34.000+0000" }, { "id": "430517", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kiguchi] should the ticket be reopened? It seems like it is still an issue.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-13T16:45:01.000+0000", "updated": "2017-11-13T16:45:01.000+0000" }, { "id": "430570", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] Maybe Jenkins was failing to build it. Would you try {{7.0.0.v20171113152835}} ? I am getting {{50, 25}} for it.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-14T00:29:51.000+0000", "updated": "2017-11-14T00:29:51.000+0000" }, { "id": "430573", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kiguchi] yes, it works. I'll close the ticket.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-14T01:04:21.000+0000", "updated": "2017-11-14T01:04:21.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }