{ "id": "160267", "key": "TIMOB-23407", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-05-26T23:00:53.000+0000", "created": "2016-05-16T13:54:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "automated" ], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-10-18T21:38:27.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": "TableViewRow 'postlayout' event is never called.\r\n{code}\r\n$.row.addEventListener('postlayout', function(e){\r\n\tTi.API.info(\"-- postlayout event\");\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: TableViewRow event listener postlayout is never called", "creator": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 4294967296\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.1.2.GA\r\n SDK Path = /Users/amurcia/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA\r\n Target Platform = android", "comment": { "comments": [ { "id": "385869", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~amurcia],\r\n\r\nThanks for reporting. Your contribution is appreciated. If you can provide us full test code that reproduces the issue then it will be convenient for us to identify if it is a bug or implementation error.\r\n\r\nThanks in advance ", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-17T06:14:52.000+0000", "updated": "2016-05-17T06:14:52.000+0000" }, { "id": "385999", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI have also found that {{TableViewRow}} event listener {{postlayout}} is never fired.\r\n\r\n*Steps:*\r\n1. Create a classic project for Android with following code.\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tableData = [];\r\nvar win= Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar table = Ti.UI.createTableView({ objName: 'table' });\r\nvar row = Titanium.UI.createTableViewRow();\r\n\r\nvar view = Titanium.UI.createView({\r\n backgroundColor:'red',\r\n width: 20, height: 20\r\n});\r\n\r\nrow.addEventListener('postlayout', function(e){\r\n\r\n\tTi.API.info(\"-- postlayout event\");\r\n\r\n});\r\n\r\nrow.add(view);\r\ntableData.push(row);\r\ntable.setData(tableData);\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n{code}\r\n2. Build and run the app.\r\n3. Make the screen rotate. >> {{postlayout}} event is not fired and log is not produced.\r\n\r\nThanks\r\n\r\n*Environment*:\r\n\r\n*Device info:* Nexus7 (android 6.0.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.2.GA and 5.2.1.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-18T05:42:48.000+0000", "updated": "2016-05-18T05:42:48.000+0000" }, { "id": "386602", "author": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please, I need a solution for this.", "updateAuthor": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-24T08:55:57.000+0000", "updated": "2016-05-24T08:55:57.000+0000" }, { "id": "393639", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nThe {{postlayout}} event gets fired successfully.\r\nClosing.\r\n\r\n\r\nEnvironment:\r\nAppc Studio : 4.7.1.201608190732\r\nTi SDK : 6.0.0.v20160819105028\r\nTi CLI : 5.0.9\r\nAlloy : 1.9.1\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.7\r\nAppc CLI : 6.0.0-24\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-19T18:44:56.000+0000", "updated": "2016-08-19T18:44:56.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }