{ "id": "105452", "key": "TIMOB-13304", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2018-04-04T23:57:42.000+0000", "created": "2012-11-23T04:29:45.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-05T00:00: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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "*Test case*\r\n{code}\r\nvar wnd = Ti.UI.createWindow()\r\nTi.UI.backgroundColor = \"#FFFFFF\"\r\n\r\n//Problems:\r\n//1. second section appear differently than first and third\r\n//2. deleteRow(3) removes row number 6\r\nfunction tableViewBug() {\r\n\tvar table = Ti.UI.createTableView()\r\n\tvar sections = []\r\n\tfor (var i = 0; i < 3; ++i) {\r\n\t\tvar section = Ti.UI.createTableViewSection()\r\n\t\tfor (var j = 0; j < 3; ++j) {\r\n\t\t\tvar row = Ti.UI.createTableViewRow()\r\n\t\t\tvar label = Ti.UI.createLabel({\r\n\t\t\t\ttext : \"section:\" + i + \" row:\" + j\r\n\t\t\t})\r\n\t\t\trow.add(label)\r\n\t\t\tsection.add(row)\r\n\t\t}\r\n\t\tsections.push(section)\r\n\t}\r\n\ttable.data = sections\r\n\twnd.add(table)\r\n\tsetTimeout(function() {\r\n\t\ttable.deleteRow(3)\r\n\t}, 3000)\r\n}\r\n\r\ntableViewBug()\r\nwnd.open()\r\n{code}", "attachment": [], "flagged": false, "summary": "Mobile Web: TableView deleteRow does not work if filled by setting data property to array of sections", "creator": { "name": "andrey@studiomobile.ru", "key": "andrey@studiomobile.ru", "displayName": "Andrey Verbin", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andrey@studiomobile.ru", "key": "andrey@studiomobile.ru", "displayName": "Andrey Verbin", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.7.5", "closedSprints": [ { "id": 199, "state": "closed", "name": "2014 Sprint 18 SDK", "startDate": "2014-09-02T22:56:57.421Z", "endDate": "2014-09-13T00:00:00.000Z", "completeDate": "2014-09-15T20:08:19.146Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "245047", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can't reproduce using Ti SDK 3.0.2.GA", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T22:11:19.000+0000", "updated": "2013-04-01T22:11:19.000+0000" }, { "id": "245055", "author": { "name": "andrey@studiomobile.ru", "key": "andrey@studiomobile.ru", "displayName": "Andrey Verbin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Pedro,\n\nI can definitely reproduce this with 3.0.4.GA with iPhone Mobile Safari, Chrome and Safari browsers. I've also posted [pull request|https://github.com/appcelerator/titanium_mobile/pull/3470] with partial fix for this problem. \n\nAlso you may notice two things running above code:\n1. When I do table.deleteRow(3) \"Section 2: row 3\" row being deleted, not \"Section 0: row 2\".\n2. There are no separators in \"section 1\" rows.\n\nThu bug is [here|https://github.com/appcelerator/titanium_mobile/blob/master/mobileweb/titanium/Ti/UI/TableView.js#L284]. \"sections\" array there has \"sections\" and \"separators\". But for statement iterate it as if it had only \"sections\".\n\n", "updateAuthor": { "name": "andrey@studiomobile.ru", "key": "andrey@studiomobile.ru", "displayName": "Andrey Verbin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T22:53:42.000+0000", "updated": "2013-04-01T22:53:42.000+0000" }, { "id": "245058", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "My mistake, I tested it on iPhone. This is a bug, thanks for reporting it.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T23:01:59.000+0000", "updated": "2013-04-01T23:01:59.000+0000" }, { "id": "245059", "author": { "name": "andrey@studiomobile.ru", "key": "andrey@studiomobile.ru", "displayName": "Andrey Verbin", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No problem :), please let me know if you need any more explanations about it.", "updateAuthor": { "name": "andrey@studiomobile.ru", "key": "andrey@studiomobile.ru", "displayName": "Andrey Verbin", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T23:03:57.000+0000", "updated": "2013-04-01T23:03:57.000+0000" }, { "id": "436495", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:57:42.000+0000", "updated": "2018-04-04T23:57:42.000+0000" }, { "id": "436507", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-05T00:00:04.000+0000", "updated": "2018-04-05T00:00:04.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }