{ "id": "104405", "key": "TIMOB-11669", "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": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "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": "2013-03-26T08:33:46.000+0000", "created": "2012-11-05T21:33:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity", "qe-ios214" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [ { "id": "22534", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94440", "key": "TIMOB-9994", "fields": { "summary": "Android: postlayout event not fired for labels", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:44:22.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "While testing Labels I noticed that console fires events twice. \r\n*not a regression* occurs on 2.1.3 \r\nIt also appears in 3.0.0\r\n\r\nTest steps:\r\n1.Run this code below:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#FFF',\r\n layout : 'vertical'\r\n});\r\n \r\nvar label = Ti.UI.createLabel({\r\n text : \"hello\",\r\n left : 0,\r\n width : Ti.UI.SIZE,\r\n height : Ti.UI.SIZE\r\n});\r\n \r\nlabel.addEventListener(\"postlayout\", function(e) {\r\n Ti.API.info(\"label postlayout\");\r\n //alert(\"label post layout\");\r\n});\r\n \r\nvar doBtn = Ti.UI.createButton({\r\n title : \"do\",\r\n width : Ti.UI.SIZE,\r\n height : Ti.UI.SIZE\r\n});\r\n \r\ndoBtn.addEventListener(\"click\", function() {\r\n label.text = \"new text\";\r\n label.backgroundColor = '#F00';\r\n label.left += 20;\r\n \r\n});\r\nwin.add(doBtn);\r\nwin.add(label);\r\nwin.open(); \r\n{code}\r\n2. Press buttons in order\r\n3. Check console\r\nActual result:\r\n3.See an attachment.\r\n\r\nExpected result:\r\nSee an attachment.\r\n\r\n", "attachment": [ { "id": "33192", "filename": "eventsX2.txt", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T21:33:48.000+0000", "size": 1511, "mimeType": "text/plain" }, { "id": "33193", "filename": "expected.txt", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T21:33:48.000+0000", "size": 539, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Label - postlayout events fired twice for labels.", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium Studio, build: 3.0.0.201210301422\r\nTitanium SDK, build: 2.1.4.v20121030173408\r\nDevices:\r\niPhone5 ios 6.0\r\niPad2 ios 4.3.5", "comment": { "comments": [ { "id": "244099", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T08:33:46.000+0000", "updated": "2013-03-26T08:33:46.000+0000" }, { "id": "244191", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nTitanium Studio, build: 3.1.0.201303230404\nTitanium SDK, build: 3.1.0.v20130325155928\n\nDevices:\niPhone5 iOS 6.1.3\niPad mini iOS 6.0\n\n\"label postlayout\" fired once\n\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T22:33:21.000+0000", "updated": "2013-03-26T22:33:21.000+0000" }, { "id": "246845", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nTested with:\r\nSDK: 3.1.0.v20130409124549\r\nStudio:3.1.0.201304011603\r\nDevice: iPad2(v 5.1)\r\nOS: OSX 10.7.5\r\n\r\n\"label postlayout' fires once.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T10:58:37.000+0000", "updated": "2013-04-10T10:58:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }