{ "id": "112046", "key": "TIMOB-13297", "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": "15400", "description": "2013 Sprint 08 API", "name": "2013 Sprint 08 API", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "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-04-10T22:06:39.000+0000", "created": "2013-04-01T19:09:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-03T06:26:04.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": "h3. Problem\r\nClosing a lightweight window in android is very slow, you can see how the children are being removed one by one creating a bad user experience. \r\n\r\nh3. Code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#eee'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'here'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n LightWindow().open();\r\n})\r\n\r\nwin.add(btn);\r\n\r\nwin.open();\r\n\r\nfunction LightWindow() {\r\n var win = Ti.UI.createWindow({\r\n layout:'vertical',\r\n backgroundColor: '#ccc'\r\n });\r\n \r\n var btn = Ti.UI.createButton({\r\n title: 'Close'\r\n });\r\n \r\n win.add(btn);\r\n \r\n btn.addEventListener('click', function(){\r\n win.close(); \r\n });\r\n \r\n for(var i = 0; i < 100; i++) {\r\n win.add(Ti.UI.createButton({\r\n title: 'Button: ' + (i + 1)\r\n }))\r\n }\r\n \r\n return win;\r\n}\r\n{code}\r\nh3. To reproduce:\r\n1. Copy and paste the code into app.js\r\n2. Click on the button that will open the light weight window\r\n3. On lightweight window, click on the first button \"Close\"\r\n4. You will see how all the other buttons (which do nothing) will dissapear one by one before the window is closed\r\n\r\nh3. Workaround:\r\nHide the window before closing it.", "attachment": [], "flagged": false, "summary": "Android: Light weight window close is VERY slow", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.0.2.GA", "comment": { "comments": [ { "id": "246913", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4140", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T19:55:45.000+0000", "updated": "2013-04-10T19:55:45.000+0000" }, { "id": "248622", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4194", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T17:31:38.000+0000", "updated": "2013-04-22T17:31:38.000+0000" }, { "id": "250055", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Working as expected, hence closing the issue.\r\n\r\nVerified on:\r\nTested on:\r\nDevice: Samsung Galaxy Note, Android version: 2.3.6\r\nSDK: 3.1.1.v20130502180055\r\nCLI version : 3.1.0\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.0.201305020752\r\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-03T06:26:04.000+0000", "updated": "2013-05-03T06:26:04.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }