{ "id": "87891", "key": "TIMOB-7986", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15273", "description": "2013 Sprint 05 API", "name": "2013 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2013-03-11" }, { "id": "14815", "description": "2013 Sprint 05", "name": "2013 Sprint 05", "archived": true, "released": true, "releaseDate": "2013-03-11" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-03-07T00:52:39.000+0000", "created": "2012-03-13T22:32:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_window", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "26432", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "86249", "key": "TIMOB-7584", "fields": { "summary": "Android: opening a new window, background color is briefly displayed before objects are added to the screen", "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 } } } }, { "id": "26193", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "105162", "key": "TIMOB-11810", "fields": { "summary": "Ti API: Address common WebView deficiencies", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-16T07:16:35.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": "Create window now opens a new blank (black) window then the controls are added in. This create window behavior works fine with Ti SDK 1.7.5 and 1.7.6 but 1.8.0.1 onwards it is opening a black window and then showing the content. The black screen is not visible in Ti sdk 1.7.5 and 1.7.6 . \r\nh4. Repro Steps\r\n1. Run the below code.\r\n2. Press the button \"Open a new widow\" and you can see the black screen.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Window1',\r\n backgroundColor:'#fff'\r\n});\r\nvar versionLabel = Ti.UI.createLabel({\r\n\ttext: 'SDK ver: ' + Titanium.version,\r\n\twidth: 'auto',\r\n\theight: 'auto',\r\n\ttop: '50dp'\r\n});\r\nvar button = Ti.UI.createButton({\r\n\ttitle: 'Open a new window',\r\n\tbackgroundColor:'red',\r\n\twidth: 'auto',\r\n\ttop: '100dp',\r\n\theight: '30dp'\r\n});\r\n\r\nbutton.addEventListener('click', function(){\r\n\tvar newWin = Ti.UI.createWindow({\r\n\t\ttitle: 'Window2',\r\n\t\tfullscreen:'true'\r\n\t\t\r\n\t});\r\n\tvar headerImg = Ti.UI.createImageView({\r\n\t\t\timage: '/images/APPC_logo.png',\r\n\t\t\tbackgroundColor: 'red',\r\n\t\t\ttop: 0,\r\n\t\t\tleft: 0,\r\n\t\t\twidth: '100%',\r\n\t\t\theight: '40dp'\r\n\t\t}),\r\n\t\ttableView = Ti.UI.createTableView({\r\n\t\t\ttop: '40dp',\r\n\t\t\theight: '200dp',\r\n\t\t\tbackgroundColor: 'blue'\r\n\t\t}),\r\n\t\twebView = Ti.UI.createWebView({\r\n\t\t\turl: 'http://www.google.com/',\r\n\t\t\ttop: '241dp',\r\n\t\t\tbottom: 0,\r\n\t\t\tbackgroundColor: 'green'\r\n\t\t}),\r\n\t\trows = [],\r\n\t\trow,\r\n\t\tlabel;\r\n\t\r\n\tfor (var i=0; i < 40; i++) {\r\n\t\trow = Ti.UI.createTableViewRow();\r\n\t\tlabel = Ti.UI.createLabel({\r\n\t\t\ttext: 'Label ' + i,\r\n\t\t\twidth: 'auto',\r\n\t\t\theight: 'auto',\r\n\t\t\tleft: 0\r\n\t\t});\r\n\t\trow.add(label);\r\n\t\trows.push(row);\r\n\t};\t\r\n\ttableView.setData(rows);\r\n\t\r\n\t\r\n\tnewWin.add(headerImg);\r\n\tnewWin.add(tableView);\r\n\tnewWin.add(webView);\r\n\tnewWin.open();\r\nwin.add(versionLabel);\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "26185", "filename": "APPC_logo.png", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-13T22:32:00.000+0000", "size": 5738, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Create window now opens a new blank (black) window then draws in the content.", "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\nTi SDK 2.0.x CI build, 1.8.2, 1.8.1\r\nLG Optimus V", "comment": { "comments": [ { "id": "186377", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This could be related to this issue: https://gist.github.com/2023001 (except \"children\" array part)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-03-14T01:58:20.000+0000", "updated": "2012-03-14T01:58:20.000+0000" }, { "id": "186382", "author": { "name": "ben_collier", "key": "ben_collier", "displayName": "Ben Collier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We're getting this as well. Preventing us from releasing an app and making us hesitant on using Titanium for our next major project..", "updateAuthor": { "name": "ben_collier", "key": "ben_collier", "displayName": "Ben Collier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-14T02:41:58.000+0000", "updated": "2012-03-14T02:41:58.000+0000" }, { "id": "241081", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a duplicate of TIMOB-7584. Can not reproduce with latest master and 3.0.0.GA.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-07T00:51:32.000+0000", "updated": "2013-03-07T00:51:32.000+0000" }, { "id": "261978", "author": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environments - \nAppcelerator Studio - 3.1.2.201307121651\nTitanium SDK - 3.1.2.v20130710144553, 3.1.1.GA\nacs - 1.0.3\nnpm - 1.3.2\ntitanium - 3.1.1\ntitanium-code-processor - 1.0.1\nDevice - Galaxy Nexus (v4.0.4)\n\nNow its not reproducible. Does not show black window. Hence closing this issue.", "updateAuthor": { "name": "djha", "key": "djha", "displayName": "Dhirendra Jha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-16T07:15:27.000+0000", "updated": "2013-07-16T07:15:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }