{ "id": "155885", "key": "TIMOB-20612", "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": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-23T23:28:29.000+0000", "created": "2016-03-22T05:37:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.3.0" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-02T23:44:17.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "An event listener is added for a postlayout event on a view, and then a property on the view is changed (eg height or top). The callback for the event listener does not get executed.\r\n\r\n*Test Code:* reporter’s sample [code|https://www.dropbox.com/s/s4iev5w66vmct5a/accessCase%20%281%29.zip?dl=0].\r\n\r\n*Test Environment:*\r\n\r\nAppcelerator Command-Line Interface; 5.2.0\r\nOperating System: Microsoft Windows 8.1 Enterprise\r\nNode.js: 0.12.7\r\nnpm: 2.11.3\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.3\r\n Core Package = 5.2.0\r\n\r\nTitanium CLI:5.0.6\r\nTI SDK:5.4.0.v20160307212310\r\n\r\n\r\n*Test Steps:*\r\n\r\n* Import the app\r\n* Run it in a windows device\r\n* Click the blue box ,it is getting changed and check that the callback for the event listener(post layout) does not get executed\r\n\r\n*Test Results:*\r\n\r\n{code}\r\n] Running MSBuild on solution: C:\\Users\\titanium\\.titanium\\vsbuild\\AlloyTestWindows\\phone.ARM\\AlloyTestWindows.sln\r\n[INFO] Writing build manifest: C:\\Users\\titanium\\.titanium\\vsbuild\\AlloyTestWindows\\build-manifest.json\r\n[INFO] Copying results back to project build directory\r\n[INFO] Finished building the application in 1m 12s 251ms\r\n[INFO] Finished building the application in 1m 12s 251ms\r\n[INFO] Installing and launching the application\r\n[INFO] Project built successfully in 1m 14s 918ms\r\n\r\n[INFO] Finished launching the application\r\n[INFO] Waiting for app to connect to log relay\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows: postlayout events not firing", "creator": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 597, "state": "closed", "name": "2016 Sprint 06 SDK", "startDate": "2016-03-12T01:30:59.982Z", "endDate": "2016-03-26T00:30:00.000Z", "completeDate": "2016-03-28T03:38:09.726Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "380498", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this. {{postlayout}} is fired once when app is loaded, but after that, not fired even when view size is changed.\r\n\r\n{code:javascript}\r\nvar win = Titanium.UI.createWindow({backgroundColor:'green'});\r\nvar view = Titanium.UI.createView({\r\n backgroundColor: 'red',\r\n width: 200,\r\n height: 200\r\n});\r\nvar view2 = Titanium.UI.createView({\r\n backgroundColor: 'green',\r\n width: '80%',\r\n height: '80%',\r\n});\r\nvar view3 = Ti.UI.createView({\r\n backgroundColor: 'gray',\r\n width: '80%',\r\n height: '80%'\r\n});\r\n\r\nview2.add(view3);\r\nview.add(view2);\r\n\r\nview.addEventListener('postlayout', function () {\r\n Ti.API.info('view postlayout');\r\n});\r\nview.addEventListener('click', function () {\r\n view.width = view.width * 0.9;\r\n view.height = view.height * 0.9;\r\n});\r\nview2.addEventListener('postlayout', function () {\r\n Ti.API.info('view2 postlayout');\r\n});\r\nview3.addEventListener('postlayout', function () {\r\n Ti.API.info('view3 postlayout');\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-23T09:55:09.000+0000", "updated": "2016-03-23T09:56:38.000+0000" }, { "id": "380512", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/589", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-23T11:52:06.000+0000", "updated": "2016-03-23T11:52:06.000+0000" }, { "id": "380547", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "5_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/590", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-23T19:36:19.000+0000", "updated": "2016-03-23T19:36:19.000+0000" }, { "id": "384510", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, postlayout events are fired for each click, after the initial one.\r\n\r\nTested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.6.0.201604290815\r\nTi SDK: 5.3.0.v20160430043601\r\nAppc NPM: 4.2.5-5\r\nAppc Core: 5.3.0-40\r\nNode: v4.4.2\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-05-02T23:44:06.000+0000", "updated": "2016-05-02T23:44:06.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }