{ "id": "97781", "key": "TIMOB-10086", "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": "14624", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" }, { "id": "14625", "description": "2012 Sprint 24 API", "name": "2012 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-21T08:54:04.000+0000", "created": "2012-07-23T10:56:24.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "module_window", "qe-and070112", "qe-testadded" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-21T08:54: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": "The BackgroundColor of new window not shown when new window opened in a tab. This happens only on Android Honeycomb and works fine when tested on Froyo, Gingerbread and ICS.\r\n\r\nThis is not a regression. The issue occurs atleast since 2.0.2\r\n\r\nSteps to Reproduce:\r\n1. Create an application with code below\r\n2. Launch the application\r\n3. Under Tab1, Click on 'Open Win3' button\r\n\r\nActual: The win3 opens up under tab1 and has no background color\r\n\r\nExpected: The window win3 should open up with blue background color\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n  \r\nvar win1 = Titanium.UI.createWindow({  \r\n    title:'Tab 1',\r\n    backgroundColor:'#fff'\r\n});\r\n \r\nvar button = Ti.UI.createButton({\r\n    title:'open win3',\r\n    width:200,\r\n    height:100\r\n});\r\n \r\nwin1.add(button);\r\n \r\nvar win2 = Titanium.UI.createWindow({  \r\n    title:'Tab 2',\r\n    backgroundColor:'#fff'\r\n}); \r\n  \r\nvar label2 = Titanium.UI.createLabel({\r\n    color:'#999',\r\n    text:'I am Window 2',\r\n    font:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n    textAlign:'center',\r\n    width:'auto'\r\n});\r\n  \r\nwin2.add(label2);\r\n   \r\nvar win3 = Ti.UI.createWindow({\r\n    title:'foobar',\r\n    backgroundColor:'blue',\r\n});\r\nvar button2 = Ti.UI.createButton({\r\n    title:'back to win1',\r\n    width:200,\r\n    height:100,\r\n    backgroundColor:'white'\r\n});\r\n \r\nwin3.add(button2);\r\n  \r\nbutton.addEventListener('click', function(){\r\n    win3.open();\r\n});\r\n \r\nbutton2.addEventListener('click', function(){\r\n    win3.close()\r\n});     \r\n  \r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\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\n \r\nvar tab2 = Titanium.UI.createTab({  \r\n    icon:'KS_nav_ui.png',\r\n    title:'Tab 2',\r\n    window:win2\r\n});\r\n  \r\ntabGroup.addTab(tab1);  \r\ntabGroup.addTab(tab2);  \r\n  \r\ntabGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Window: Honeycomb - BackgroundColor of new window not shown when new window opened in a tab", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.1.201207171343\r\nTitanium SDK: 2.1.1.v20120718121609\r\nDevice: Samsung Tab GT-P6200 (v3.2.6), Android Emulator v3.1, Android Emulator v3.2\r\nRuntime: v8", "comment": { "comments": [ { "id": "227029", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another simple test case:\n{code}\nvar win = Ti.UI.createWindow({\n\tfullscreen: true,\n backgroundColor:'red',\n title:'test'\n});\n \nvar button = Ti.UI.createButton({\n title:'open win2',\n width:200,\n height:100\n});\n \nwin.add(button);\n\nvar win2 = Ti.UI.createWindow({\n\ttitle:'foobar',\n backgroundColor:'blue'\n});\n\nvar v = Ti.UI.createWindow({\n\tbackgroundColor: 'blue'\n});\n\nvar button2 = Ti.UI.createButton({\n\ttitle:'back to win',\n width:200,\n height:50,\n backgroundColor:'white'\n});\n \nwin2.add(button2);\n \nbutton.addEventListener('click', function(){\n win2.open();\n});\n \nbutton2.addEventListener('click', function(){\n win2.close()\n});\n \nwin.open();\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-12T18:57:42.000+0000", "updated": "2012-11-12T18:57:42.000+0000" }, { "id": "227030", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3408\nRun the two test cases above. The new windows should open correctly.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-12T18:59:14.000+0000", "updated": "2012-11-12T18:59:14.000+0000" }, { "id": "235128", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.0.v20130114171802\r\nStudio:3.0.1.201212181159\r\nDevice: Samsung tab(v 3.2)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-21T15:26:54.000+0000", "updated": "2013-01-21T15:26:54.000+0000" }, { "id": "258958", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening just to update label", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T08:49:12.000+0000", "updated": "2013-06-21T08:49:12.000+0000" }, { "id": "258959", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label and verified.\r\nTested on:\r\nDevice: Nexus tab Android Version 3.2\r\nSDK:3.1.2.v20130619101604\r\nAppcelerator Studio: 3.1.1.201306131423\r\nOS: OSX 10.8\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-21T08:54:04.000+0000", "updated": "2013-06-21T08:54:04.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }