{ "id": "101615", "key": "TIMOB-11030", "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": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-09-22T07:29:45.000+0000", "created": "2012-09-20T15:55:40.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios090112", "qe-ios6" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "21138", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "93719", "key": "TIMOB-9736", "fields": { "summary": "iOS: Text Area in Scroll View in Modal Window Goes offscreen on focus", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "22400", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "104152", "key": "TIMOB-11609", "fields": { "summary": "iOS: Window - Modal window being black *on iPad* after constant background color \"stripped\" was applied.", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-13T18:54:43.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Description:\r\nApplying background color constants or \"stripped\" color to modal window results in the modal window being black.\r\nThis doesn't occur on iOS 5 devices even if the iOS 6.0 SDK and Xcode 4.5 are used for the build.\r\n\r\nThis is not a regression because iOS 6 was not available previously.\r\n\r\nSteps:\r\n1. Run the following code on iOS 6.0:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ccc'\r\n});\r\n\t\r\n\tvar btn = Ti.UI.createButton({\r\n\t\t    width: Ti.UI.SIZE,\r\n\t\t    height: Ti.UI.SIZE,\r\n\t\t    title: 'Click me!'\r\n\t\t});\r\n\t\t \r\n\t\twin.add(btn);\r\n\t\t  \r\n\t\tbtn.addEventListener('click', function(e) {\r\n\t\t    var w = Ti.UI.createWindow({\r\n\t\t        backgroundColor : 'stripped'\r\n\t\t});\r\n\t\t \r\n\t\t    var scrollView = Ti.UI.createScrollView({\r\n\t\t        contentHeight: 1000,\r\n\t\t        width: Ti.UI.FILL,\r\n\t\t        height: Ti.UI.FILL\r\n\t\t    });\r\n\t\t \r\n\t\t    var label = Ti.UI.createLabel({\r\n\t\t        text : 'Scroll Down',\r\n\t\t        height : Ti.UI.SIZE,\r\n\t\t        width : Ti.UI.FILL,\r\n\t\t        textAlign : 'center',\r\n\t\t        top: 10\r\n\t\t    });\r\n\t\t \r\n\t\t    var textArea = Ti.UI.createTextArea({\r\n\t\t        left:10,\r\n\t\t        right:10,\r\n\t\t        bottom: 150,\r\n\t\t        height: 100,\r\n\t\t    });\r\n\t\t    var Close = Titanium.UI.createButton({\r\n\t\t        title : 'Close',\r\n\t\t        width: Ti.UI.SIZE,\r\n\t\t        height: Ti.UI.SIZE,\r\n\t\t        bottom: 50\r\n\t\t    });\r\n\t\t \r\n\t\t \r\n\t\t    scrollView.add(label);\r\n\t\t    scrollView.add(textArea);\r\n\t\t    scrollView.add(Close);\r\n\t\t \t\r\n\t\t\tClose.addEventListener('click',function(){\r\n\t\t\t\tw.close();\r\n\t\t\t})\r\n\t\t\t\r\n\t\t    textArea.addEventListener('return', function() {\r\n\t\t        textArea.blur();\r\n\t\t    });\r\n\t\t\r\n\t\t     \r\n\t\t    w.add(scrollView);\r\n\t\t    w.orientationModes = [\r\n\t\t    Titanium.UI.PORTRAIT,\r\n\t\t    Titanium.UI.LANDSCAPE_LEFT,\r\n\t\t    Titanium.UI.LANDSCAPE_RIGHT\r\n\t\t];\r\n\t\t    w.open({modal : true});\r\n\t\t \r\n\t\t});\r\n\r\nwin.open();\r\n{code}\r\n2. Press \"Click me\" button\r\n\r\nExpected result:\r\nShould see a modal window with \"Scroll Down\" label\r\n\r\nActual result:\r\nThe modal window turns black", "attachment": [], "flagged": false, "summary": "iOS: Applying background color constants or \"stripped\" color to modal window results in the modal window being black", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on: \r\nOS: Mac OS X Lion 10.7.4 \r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 2.1.3.v20120918170114\r\nDevice: iPhone 4S (6.0)", "comment": { "comments": [ { "id": "220045", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The [UIColor groupTableViewBackgroundColor] constant has been deprecated in IOS6. Using this value on devices running IOS6 and above will result in black backgrounds.\r\nSetting up PR to warn developers regarding this change and updating docs for the same.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-20T16:44:57.000+0000", "updated": "2012-09-20T16:44:57.000+0000" }, { "id": "220242", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified on: \r\nOS: Mac OS X Lion 10.7.4 \r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK, build: 2.1.3.v20120921141611\r\nDevice: iPhone 4S (6.0.GM)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T16:55:54.000+0000", "updated": "2012-09-21T16:55:54.000+0000" }, { "id": "220262", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Text of warning:\r\n\r\nThis constant has been deprecated in iOS 6. Group style table views still default to using the standard iOS group table view background texture if no background color is specified. However, specifying this constant explicitly on iOS 6 and above results in a black background color.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-22T07:25:30.000+0000", "updated": "2012-09-22T07:25:30.000+0000" }, { "id": "220263", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to change resolution state.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-22T07:28:11.000+0000", "updated": "2012-09-22T07:28:11.000+0000" }, { "id": "220540", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.\nFor ios 6.0 there is a console warning:\n\n[WARN]Group style table view backgrounds can no longer be represented by a simple color. Reverting to black\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-24T23:17:41.000+0000", "updated": "2012-09-24T23:17:41.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }