{ "id": "103384", "key": "TIMOB-11483", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-10T17:57:22.000+0000", "created": "2012-10-15T07:16:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "45137", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99051", "key": "TIMOB-10435", "fields": { "summary": "ios: postlayout not called upon orientation", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-27T21:56:51.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": "Postlayout event is not fired in a window inside a tab.\r\nThis is regression since the issue does not occur in 2.1.3 GA.\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. Launch the app.\r\n\r\nExpected:\r\nThe text on the label should get printed on the screen i.e. \" Green view.center.x should be 50 and is: 50 '\r\nGreen view.center.y should be 50 and is: 50\"\r\n\r\nActual:\r\nThe label text is not printed.\r\n\r\n{code}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'white'\r\n});\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: 'View Size is: ',\r\n\ttop: 100,\r\n\tleft: 10,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\tcolor: 'black'\r\n});\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor: 'green',\r\n\theight: 40,\r\n\twidth: 40,\r\n\tcenter: {x:50,y:50}\r\n});\r\n\r\nwin1.addEventListener('postlayout', function (e) {\r\n\t//win.removeEventListener('postlayout', layoutHandler);\r\n\tlabel.text = 'Green view.center.x should be 50 and is: '+view.center.x+'\\nGreen view.center.y should be 50 and is: '+view.center.y;\r\n\t//win.addEventListener('postlayout', layoutHandler);\r\n});\r\n\r\nwin1.add(label);\r\nwin1.add(view);\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.open();\r\n\r\n{code}", "attachment": [ { "id": "34033", "filename": "UICompositeLayout.zip", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T11:08:06.000+0000", "size": 7819360, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: UICompositeLayout - Postlayout event is not fired on a window inside a tab", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.0.0.v20121014181609\r\nStudio:2.1.3.201209111418\r\nDevices: iPad2(v 5.1)\r\nOS: OSX 10.8", "comment": { "comments": [ { "id": "223665", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR for master https://github.com/appcelerator/titanium_mobile/pull/3238\r\n\r\nPR for 3_0_X https://github.com/appcelerator/titanium_mobile/pull/3240", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-15T21:38:20.000+0000", "updated": "2012-10-15T21:44:46.000+0000" }, { "id": "223978", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CR &FR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T16:56:13.000+0000", "updated": "2012-10-17T16:56:13.000+0000" }, { "id": "224790", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK:3.0.0.v20121019153308\r\nStudio: 3.0.0.201210141844\r\nDevice: LG-p970(Android 2.2.2)\r\n\r\nPostlayout events are fired successfully.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T09:46:40.000+0000", "updated": "2012-10-24T09:46:40.000+0000" }, { "id": "224793", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\nSDK:3.0.0.v20121019153308\nStudio: 3.0.0.201210141844\nDevice: iPhone 3GS(v 5.0.1)\n\nPostlayout events are fired successfully.\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T10:17:02.000+0000", "updated": "2012-10-24T10:17:02.000+0000" }, { "id": "230557", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.0.0.v20121207120202\r\nStudio: 3.0.0.201211301903\r\nDevice: Iphone4s(v 5.1), iPad3(v 6.0)\r\n\r\nPostlayout event is not fired on a window inside a tab. \r\nThe issue does not occur on 2.1.4 GA", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-08T05:37:30.000+0000", "updated": "2012-12-08T05:38:38.000+0000" }, { "id": "230577", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested this with all sims supported. Do not have a device to test right now. Will test and verify on device before resolving.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-09T22:39:49.000+0000", "updated": "2012-12-09T22:39:49.000+0000" }, { "id": "230610", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When we create a standalone app with the code mentioned above, it works fine. \nHowever we tested it with the project attached which has the same code is failing to fire the postlayout event.\n\nSteps:\n1. Install the attached project.\n2. Go to acceptance tab. Click on 1020_ViewCenter\n\nExpected:\n\nThe following should be displayed:\n \"Green view.center.x should be 50 and is: 50 Green view.center.y should be 50 and is: 50\"\n\nActual:\nThe above message is not displayed.\n\nThe above project works fine on 2.1.4GA but not on 3.0\n\n\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T11:06:33.000+0000", "updated": "2012-12-10T11:06:33.000+0000" }, { "id": "230635", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T17:56:10.000+0000", "updated": "2012-12-10T17:56:10.000+0000" }, { "id": "230636", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The issue was reopened due to postlayout event not firing in the windows own context which has already been reported in QE-303 and resolved as invalid.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T17:57:14.000+0000", "updated": "2012-12-10T17:57:14.000+0000" }, { "id": "230702", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested on: \r\nTitanium Studio, build: 3.0.0.201211301903\r\nTitanium SDK, build: 3.0.0.v20121207120202\r\nDevice: iPad 2 (5.1)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T21:58:44.000+0000", "updated": "2012-12-10T21:58:44.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }