{ "id": "119982", "key": "TIMOB-15634", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-06-06T13:09:30.000+0000", "created": "2013-09-15T22:30:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam" ], "versions": [], "issuelinks": [ { "id": "32759", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "120606", "key": "AC-2540", "fields": { "summary": "ListView - rect values not available within event handler of itemTemplate element", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "36690", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "128960", "key": "AC-986", "fields": { "summary": "convertPointToView returns null for Views inside of a ListView", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:56:30.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": "h5. Problem Description\r\n\r\nconvertPointToView returns wrong result in android when views inside of a ListView. This function working good in IOS but not working in Android. \r\n\r\n\r\n\r\nh5. Test Environments \r\n\r\nOS: MAC OX X 10.8.5\r\nAlloy 1.2.2\r\nTi SDK: 3.1.2 GA, 3.1.3 GA \r\nTi CLI: 3.2.0\r\nSimulator 7.0\r\nAndroid Emulator with Android SDK 2.3.3\r\nAndroid Device \r\n\r\n\r\nh5. Test Code\r\n\r\nindex.xml\r\n\r\n \r\n{code}\r\n\r\n\t\r\n \r\n\t \r\n\t \r\n\t \r\n\t \r\n\t \r\n\t \r\n\r\n\t \r\n\t \r\n\t \r\n \r\n\t\r\n\r\n\r\n{code}\r\n\r\nindex.js \r\n{code}\r\n\r\nfunction doClick(e)\r\n{\r\n \tif (isAndroid)\r\n\t{\r\n\t\tvar pt = {x: e.x, y: e.y};\r\n\t\t// The next line seems to return null no matter what destination view I choose $.win, $.listView, $.scoresTab\r\n\t\tpt = e.source.convertPointToView(pt, $.win);\r\n\t\tif (pt == null)\r\n\t\t\tTitanium.API.info('pt is null');\r\n else\r\n\t\t\tTitanium.API.info('working');\r\n\t}\r\n}\r\n\r\n{code}\r\n\r\n\r\nh5. Step to reproduce\r\n\r\n# Create new Alloy Project \r\n# Update index.xml and index.js file \r\n# Run on Android Emulator/Device\r\n# Click on listView\r\n# Check console its print \"pt is null\"\r\n\r\nh5. Expected Result \r\n\r\nConsole will print \"working\" ", "attachment": [], "flagged": false, "summary": "Android: convertPointToView returns null for Views inside of a ListView", "creator": { "name": "dspells", "key": "dspells", "displayName": "Henry David Spells III", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Tested on Android Simulator 4.0.3 and Kindle Fire HD device\r\nHost Os: Mac OS X 10.8.4\r\nTitanium SDK version: 3.1.2 (08/14/13 12:45 5ceaff8)", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "289830", "author": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ingo,\r\n\r\nThis issue have been reported for over 6 months now. Any chance of fixing it soon?\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-27T18:24:13.000+0000", "updated": "2014-03-16T18:45:27.000+0000" }, { "id": "298974", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I am not able to reproduce the issue. Here is the test case I tried\r\n\r\n{code}\r\n var tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\tvar win = Titanium.UI.createWindow({\r\n\t\tbackgroundColor : \"#fff\"\r\n\t});\r\n\r\n\tvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\t\r\n\tvar tab1 = Titanium.UI.createTab({\r\n\t\ttitle : 'Scores',\r\n\t\twindow : win\r\n\t});\r\n\t\r\n\t\r\n\r\n\t// Create a custom template that displays an image on the left, \r\n\t// then a title next to it with a subtitle below it.\r\n\tvar myTemplate = {\r\n\t childTemplates: [\r\n\t { // Image justified left\r\n\t type: 'Ti.UI.Button', // Use button\r\n\t bindId: 'info', // Maps to a custom pic property of the item data\r\n\t events: {\r\n\t // Bind event callbacks only to the subcomponent\r\n\t click: doClick\r\n\t },\r\n\t }\r\n\t ]\r\n\t};\r\n\r\n\tvar listView = Ti.UI.createListView({\r\n\t // Maps myTemplate dictionary to 'template' string\r\n\t templates: { 'template': myTemplate },\r\n\t // Use 'template', that is, the myTemplate dict created earlier\r\n\t // for all items as long as the template property is not defined for an item.\r\n\t defaultItemTemplate: 'template'\r\n\t});\r\n\tvar sections = [];\r\n\r\n\tvar fruitSection = Ti.UI.createListSection({ headerTitle: 'Test'});\r\n\tvar fruitDataSet = [\r\n\t { info: {title: 'Apple'}},\r\n\t { info: {title: 'Banana'}}\r\n\t];\r\n\tfruitSection.setItems(fruitDataSet);\r\n\tsections.push(fruitSection);\r\n\t\r\n\tfunction doClick(e)\r\n\t{\r\n\t\tvar pt = {x: e.x, y: e.y};\r\n\t\t// The next line seems to return null no matter what destination view I choose $.win, $.listView, $.scoresTab\r\n\t\tpt = e.source.convertPointToView(pt, win);\r\n\t\tif (pt == null)\r\n\t\t\tTitanium.API.info('pt is null');\r\n else\r\n\t\t\tTitanium.API.info('working');\r\n\t}\r\n\r\n\r\n\tlistView.setSections(sections);\r\n\twin.add(listView);\r\n\ttabGroup.addTab(tab1);\r\n\ttabGroup.open();\r\n{code}", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-27T15:25:23.000+0000", "updated": "2014-06-02T21:20:00.000+0000" }, { "id": "298985", "author": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sunila,\r\n\r\nDid you run with the test code that was provided by Ingo (above)?\r\n\r\n", "updateAuthor": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-27T16:21:28.000+0000", "updated": "2014-03-27T16:21:28.000+0000" }, { "id": "299275", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I have try to run the Alloy test code in the bug but it doesn't launch the app properly.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-30T13:47:18.000+0000", "updated": "2014-03-30T13:47:18.000+0000" }, { "id": "299279", "author": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The test code was from Ingo, you may want to check with Ingo?", "updateAuthor": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-30T14:23:11.000+0000", "updated": "2014-03-30T14:23:11.000+0000" }, { "id": "299999", "author": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sunila & Ingo, what's going on guys?\r\n\r\nIt's outstanding for over *9 months* since we first reported it and still unresolved!!", "updateAuthor": { "name": "youngtt", "key": "youngtt", "displayName": "Young", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-06T20:05:10.000+0000", "updated": "2014-04-06T20:07:45.000+0000" }, { "id": "307608", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue is not reproducible with the test code provided by [~sunila] .\r\nconvertPointToView does not return \"null\".\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405271647\r\nTi SDK : 3.3.0.v20140603152512 \r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-beta\r\nCLI - 3.3.0-beta2\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-04T23:31:38.000+0000", "updated": "2014-06-04T23:31:38.000+0000" }, { "id": "307808", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have tried to reproduce this issue three separate times to no avail. If someone can provide a test case that demonstrates the problem, we'd be happy to reopen it.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-06T13:09:30.000+0000", "updated": "2014-06-06T13:09:30.000+0000" }, { "id": "414505", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:56:30.000+0000", "updated": "2017-03-21T21:56:30.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }