{ "id": "110235", "key": "TIMOB-13104", "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": "15486", "description": "2013 Sprint 10 API", "name": "2013 Sprint 10 API", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "15108", "description": "2013 Sprint 10", "name": "2013 Sprint 10", "archived": true, "released": true, "releaseDate": "2013-05-20" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-20T18:38:36.000+0000", "created": "2013-02-26T10:29:40.000+0000", "priority": null, "labels": [ "android", "exalture", "iOS", "module_imageview", "parity", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "29690", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "116155", "key": "AC-2203", "fields": { "summary": "Regression postlayout on Android ImageView not firing TIMOB-13104 needs to be reopened", "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": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-10-10T09:13:36.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": "*Problem*\r\npostlayout event not firing on android but works as expected on iOS. Possible Parity.\r\n\r\n*Steps to Reproduce*\r\n1. Download image attached (chatbubble.jpeg)\r\n2. Paste this code in app.js\r\n\r\n{code}\r\n\tvar Window = Ti.UI.createWindow({\r\n\t\tbackgroundColor: 'white'\r\n\t});\r\n\t\r\n\tvar imageView = Ti.UI.createImageView({\r\n\t\timage : 'chatbubble.jpeg'\r\n\t})\r\n \r\n\timageView.addEventListener(\"postlayout\", function() {\r\n\t\talert(\"test\");\r\n\t});\r\n\t\r\n\tWindow.add(imageView);\r\n\tWindow.open();\r\n\r\n{code}\r\n\r\n3. Run on device (android)\r\n4. Run on iOS simulator\r\n\r\nh2. Android\r\n\r\n*Expectation* \r\nyou get alert message with text \"test\" on android\r\n\r\n*Actual* \r\nNo alert message\r\n\r\nh2. iOS\r\n*Correct Behavior*\r\n2 times alert message", "attachment": [ { "id": "36403", "filename": "chatbubble.jpeg", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T19:33:30.000+0000", "size": 9664, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: Postlayout event not fired", "creator": { "name": "fincha", "key": "fincha", "displayName": "Alexander Frischbutter", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK: 3.1.0.v20130303194855\r\nbuild: 3.1.0.201303032333\r\n\r\nOn Device GalaxyS3 running 4.1.2\r\niOS Simulator (6.0)\r\n\r\nCustomer found problem on TiSDK: 2.1.4", "comment": { "comments": [ { "id": "239846", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please refer to https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report on how to report a bug. We need to see fully reproducible code along with steps to reproduce in order to review a ticket. This code should run when pasted into app.js and clearly show the problem. Thank you.", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T20:07:29.000+0000", "updated": "2013-02-26T20:07:29.000+0000" }, { "id": "242214", "author": { "name": "fincha", "key": "fincha", "displayName": "Alexander Frischbutter", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please reopen this bug", "updateAuthor": { "name": "fincha", "key": "fincha", "displayName": "Alexander Frischbutter", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-14T12:01:15.000+0000", "updated": "2013-03-14T12:01:15.000+0000" }, { "id": "242726", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alexander, when testing on iOS simulator I only get 2 alert messages. Regardless, I can confirm this is still parity behavior so I will move to Ti-Mobile for engineering to review. Can you confirm or deny the amount of alert messages you are getting?\nRegards,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T19:22:53.000+0000", "updated": "2013-03-18T19:22:53.000+0000" }, { "id": "247787", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Overrode onLayout of the native control. \r\nhttps://github.com/appcelerator/titanium_mobile/pull/4171", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-16T15:47:40.000+0000", "updated": "2013-04-16T15:47:40.000+0000" }, { "id": "258562", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening as per TC-2492.\r\n\r\nThe following code\r\n\r\n{code:javascript}\r\nvar Window = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar imageView = Ti.UI.createImageView({\r\n image:\"/iphone/appicon.png\"\r\n})\r\n \r\nimageView.addEventListener(\"postlayout\", function() {\r\n alert(\"test\");\r\n});\r\n \r\nWindow.add(imageView);\r\nWindow.open();\r\n{code}\r\n\r\nDoes not generate an alert as expected.\r\n\r\nThis is working as expected with iOS and the base View class", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-19T17:44:35.000+0000", "updated": "2013-06-19T17:44:35.000+0000" }, { "id": "258774", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I tried with the latest code and it fires the event every time I launch the app.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-20T18:21:58.000+0000", "updated": "2013-06-20T18:21:58.000+0000" }, { "id": "258779", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as fixed again -- I failed to notice that Ben was using 3.1.1 GA and this fix is for 3.2. Thanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-20T18:38:36.000+0000", "updated": "2013-06-20T18:38:36.000+0000" }, { "id": "274570", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fixed with Environment:\r\nAppc-Studio: 3.2.0.201310092427\r\nSdk:3.2.0.v20131009134844\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Google Nexus 7(v4.3),ipodTouch1(v7.0)\r\nXcode: 5\r\n\r\nPostLayout event is being called both on android and ios. Checked with imageView Control.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-10T09:12:26.000+0000", "updated": "2013-10-10T09:12:26.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }