{ "id": "123065", "key": "TIMOB-15853", "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": null, "resolutiondate": null, "created": "2013-12-02T09:47:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:12.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "h4. Problem Description\r\nSteps to reproduce\r\n1.Run following code \r\n\r\nExpected result:\r\n\r\npostlayout event should be fire once for button, label and window\r\nActual result:\r\n\r\npostlayout event fired twice for button, label, and window\r\nh4. Test case\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#000',\r\n layout: 'vertical',\r\n navBarHidden: true\r\n});\r\n \r\nvar button = Ti.UI.createButton({\r\n title: 'Test'\r\n});\r\n \r\nwin.add(button);\r\n \r\nvar label = Ti.UI.createLabel({ text: 'Something ...', height: Ti.UI.SIZE, width: Ti.UI.FILL });\r\n \r\nwin.add(label);\r\n \r\nbutton.addEventListener('postlayout', function(e) {\r\n Ti.API.info('Button postlayout');\r\n});\r\n \r\nlabel.addEventListener('postlayout', function(e) {\r\n Ti.API.info('Label postlayout');\r\n});\r\n \r\nwin.addEventListener('postlayout', function(e) {\r\n Ti.API.info('Window postlayout');\r\n});\r\n \r\nwin.open();\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: 'postlayout' event fired twice for 'Button','Label','Window' ", "creator": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI version 3.1.2, \r\nTitanium SDK version: 3.1.3 \r\nTitanium Studio, build: 3.1.1.201306112235\r\nandroid Device: samsung sduos sdk 4.0.4\r\nOSX 10.8.3", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }