{ "id": "102785", "key": "TIMOB-11286", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-29T17:10:51.000+0000", "created": "2012-10-06T00:22:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression", "triage" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "21787", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "101534", "key": "TIMOB-10998", "fields": { "summary": "iOS: iOS 6 only - tableView - On a tableview using iOS TableViewStyle.GROUPED, you can't set the tableview background to a color or an image", "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": "21877", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "102883", "key": "TIMOB-11300", "fields": { "summary": "iOS: Grouped tableview background color not behaving as expected", "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": "23629", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "106468", "key": "TIMOB-12085", "fields": { "summary": "iOS: Background Image not showing for a grouped TableViewStyle", "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": "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": "2012-12-13T18:33:01.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": "The table view default background is not seen when using Ti SD 2.1.3.\r\nh4.Steps to Reproduce:\r\n1. Load the below app.js\r\n2. Test it with 2.1.2 or any earlier SDK\r\n3. Now test it with 2.1.3 SDK\r\n\r\nExpected: the background should be same.\r\n\r\nActual Behavior: The background goes black(blank)\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\t// create table view data object\r\n\tvar data = [];\r\n\tvar ts1 = new Date().getTime();\r\n\t\r\n\tfor (var c=0;c<10;c++)\r\n\t{\r\n\t\tdata[c] = Ti.UI.createTableViewSection({headerTitle:'Group '+(c+1)});\r\n\t\tfor (var x=0;x<40;x++)\r\n\t\t{\r\n\t\t\tvar label = Ti.UI.createLabel({\r\n\t\t\t\ttext:'Group '+(c+1)+', Row '+(x+1)+\"\\nThis is another line.\\nCool\",\r\n\t\t\t\theight:'auto',\r\n\t\t\t\twidth:'auto',\r\n\t\t\t\tleft:10\r\n\t\t\t});\r\n\t\t\tvar rightButton = Titanium.UI.createButton({\r\n\t\t\t\tstyle:Titanium.UI.iPhone.SystemButton.INFO_DARK,\r\n\t\t\t\tright:10,\r\n\t\t\t\trow:x,\r\n\t\t\t\tsection:c\r\n\t\t\t});\r\n\r\n\t\t\tvar row = Ti.UI.createTableViewRow({height:'auto',className:'row'});\r\n\t\t\trow.add(label);\r\n\t\t\trow.add(rightButton);\r\n\t\t\tdata[c].add(row);\r\n\r\n\t\t}\r\n\t\r\n\t}\r\n\tvar ts2 = new Date().getTime();\r\n\t\r\n\t// create table view\r\n\tvar tableview = Titanium.UI.createTableView({\r\n\t\tdata:data,\r\n\t\tstyle: Titanium.UI.iPhone.TableViewStyle.GROUPED,\r\n\t\tminRowHeight:80\r\n\t\t\r\n\t});\r\n\t\r\n\r\n\twin.add(tableview);\r\n\r\n\twin.open();\r\n\r\n{code}", "attachment": [ { "id": "32361", "filename": "Background with 2.1.2.png", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-06T00:28:01.000+0000", "size": 41111, "mimeType": "image/png" }, { "id": "32362", "filename": "Background with 2.1.3.png", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-06T00:28:01.000+0000", "size": 37892, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: TableView property Titanium.UI.iPhone.TableViewStyle.GROUPED has a different background. (Regression Issue)", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Release 2.1.3 GA, iOS 6", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "222365", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe this is a duplicate of the linked issue. Can you confirm?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-06T00:38:44.000+0000", "updated": "2012-10-06T00:38:44.000+0000" }, { "id": "222919", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Similar issues.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T16:51:00.000+0000", "updated": "2012-10-10T16:51:00.000+0000" }, { "id": "224636", "author": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "body": "Hi, It seems that either the issue is not completely resolved or some of us are not following all the steps to resolve it. Here is a question I asked in QnA site and Shannon Hicks suggested that I add the comment here so the issue can be reopened if required. \r\n\r\nhttp://developer.appcelerator.com/question/143781/unable-to-create-grouped-tableview-with-striped-background-ios6#comment-144712\r\n\r\nLet me know if more information is required. ", "updateAuthor": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-22T14:12:52.000+0000", "updated": "2012-10-22T14:13:03.000+0000" }, { "id": "224648", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@Biren\nThere was a problem with the fix put in for iOS6 for Titanium.UI.iPhone.TableViewStyle.GROUPED. This was reported as TIMOB-11300. \nBasically if you want the default table view background for style grouped, do not set the backgroundColor property. Things should work as expected then.\nThe fix is available in the CI builds of the 2_1_X, 3_0_X and master branches. \n\nIf you do not want to use the CI build please see the following PRs for the changes required to the code.\nmaster PR https://github.com/appcelerator/titanium_mobile/pull/3150\n3.0.X PR https://github.com/appcelerator/titanium_mobile/pull/3151\n2.1.X PR https://github.com/appcelerator/titanium_mobile/pull/3152", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-22T16:28:08.000+0000", "updated": "2012-10-22T16:28:08.000+0000" }, { "id": "224679", "author": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "body": "Vishal - Thanks for your reply. I am using Titanium 2.1.3 with xcode 4.5.1 and ios6 and still facing the issue. \r\n\r\nHere is what I see when I run diagnostics test through the Ti Studio -> Help. \r\n\r\nTitanium Mobile SDK Version: 2.1.3\r\nMobile SDK Modules API Version:2\r\nMobile SDK Timestamp: 10/02/12 16:16\r\nMobile SDK Build Number: 15997d0\r\nTitanium Mobile SDK Location: ~/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA\r\n\r\n\r\nWith that said, like yourself, I am also suspecting that it could be that 'somehow' the latest code is not in play here. Can I check something in my environment like in TiUITableViewProxy.m class that gets copied to the project area or somewhere else to prove that. \r\n\r\nThanks for all you guys do. \r\n\r\nBiren.", "updateAuthor": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-23T00:00:44.000+0000", "updated": "2012-10-23T00:00:44.000+0000" }, { "id": "224815", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@Biren\nYou could just update to the latest CI build for the 2_1_X branch. (Version 2.1.4)\nIt has 3 additional fixes after the 2.1.3 build TIMOB-11250, TIMOB-10330 and TIMOB-11285\nIf you pull the build from Oct 10th it has the fixes for TIMOB-11250 and TIMOB-10330.\n\nThe CI builds are available here http://builds.appcelerator.com.s3.amazonaws.com/index.html (Make sure the branch is 2_1_X)\nTo see what commits went into 2_1_X branch see https://github.com/appcelerator/titanium_mobile/commits/2_1_X", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T17:17:35.000+0000", "updated": "2012-10-24T17:17:35.000+0000" }, { "id": "224834", "author": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "body": "Thanks Vishal for your help. I tried using 2.1.4.v20121018153121 but still no luck. (I get the white background) \r\n\r\nI am concluding that there is something wrong with my environment but I am not sure what. I cleaned the build area before testing with the new SDK and also deleted the 2.1.3 directory under ~/Library/Application Support/Titamium/mobilesdk/. \r\n\r\nI will post here / QnA if and when I find out. For now, I am going ahead and using backgroundImage to force the stripe background manually. I know its a dirty solution. (but its quick also) ", "updateAuthor": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-24T20:11:58.000+0000", "updated": "2012-10-24T20:12:51.000+0000" }, { "id": "224835", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@Biren\nCould you post some test code so we can figure out whats going on", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T20:34:44.000+0000", "updated": "2012-10-24T20:34:44.000+0000" }, { "id": "225028", "author": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "body": "Vishal - This code produces the black background with 2.1.3 \r\n\r\n\r\n\r\n----\r\nvar win = Ti.UI.createWindow();\r\n // create table view data object\r\n var data = [];\r\n\r\n var row = Ti.UI.createTableViewRow({height:'auto', title:'Row 1'});\r\n data[0]=row;\r\n \r\n\r\n // create table view\r\n var tableview = Titanium.UI.createTableView({\r\n data:data,\r\n style: Titanium.UI.iPhone.TableViewStyle.GROUPED,\r\n minRowHeight:80,\r\n });\r\n \r\n \r\n win.add(tableview);\r\n \r\n win.open();\r\n----\r\n\r\n\r\n", "updateAuthor": { "name": "sainib", "key": "sainib", "displayName": "Biren Saini", "active": true, "timeZone": "America/New_York" }, "created": "2012-10-26T00:12:37.000+0000", "updated": "2012-10-26T00:12:37.000+0000" }, { "id": "225343", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@Biren.\nThis was the bug that was reported in TIMOB-11300. It has been fixed in all the active branches that support iOS6 (2_1_X, 3_0_X, master).\nI have verified that this indeed works with 2.1.4.v20121010130125 and 2.1.4.v20121018153121\n\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-29T17:10:43.000+0000", "updated": "2012-10-29T17:10:43.000+0000" }, { "id": "229855", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.v20121130200208 on iPad 4 6.0.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T18:06:10.000+0000", "updated": "2012-12-04T18:06:10.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }