{ "id": "93661", "key": "TIMOB-9712", "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": { "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-04-24T13:16:08.000+0000", "created": "2012-06-21T15:56:52.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "exalture", "parity" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-21T21:33:56.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": "Window open event doesn't fire consistently. It works fine on iOS. On android, sometimes do not get the \"open1\" alert. \r\nh4. Repo Steps\r\n1. Run the below code in your app.js\r\n2. You can see that the \"open1\" alert is not consistent.\r\n\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff', title: 'Win 1' }); \r\n\r\nwin.addEventListener('open', function() { \r\n alert('[open1] size: ' + win.size.width + ', ' + win.size.height); \r\n});\r\nwin.addEventListener('focus', function() { \r\n alert('[focus1] size: ' + win.size.width + ', ' + win.size.height); \r\n});\r\n\r\ntabGroup.addTab(Ti.UI.createTab({ window: win, title: win.title }));\r\n\r\nwin.addEventListener('open', function() { \r\n alert('[open2] size: ' + win.size.width + ', ' + win.size.height); \r\n});\r\nwin.addEventListener('focus', function() {\r\n alert('[focus2] size: ' + win.size.width + ', ' + win.size.height); \r\n});\r\n\r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Window open event is not consistent", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2.2\r\nLG Optimus V\r\nTi SDK 2.1.0.X", "comment": { "comments": [ { "id": "239778", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem can reproduce with Latest release 3.0.2 and master release 3.1.0 .\r\nTested on:\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK version: 3.1.0 (26/02/2013)\r\nTitanium SDK version: 3.0.2 (26/02/2013)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\n\r\nThere exist an inconsistency with the window open event.For the first time it shows (0,0) as the \"width\" and \"height\" of window . After one or two attempts it shows original value .But there exist another inconsistency with the \"open1\" alert, it always shows zero for the \"width\" value,and most probably its a bug.", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T09:08:38.000+0000", "updated": "2013-03-02T12:01:25.000+0000" }, { "id": "248902", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with SDK 3.2.0 in Nexus S. The event is fired consistently.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-24T13:16:08.000+0000", "updated": "2013-04-24T13:16:08.000+0000" }, { "id": "414466", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:33:56.000+0000", "updated": "2017-03-21T21:33:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }