{ "id": "61220", "key": "TIMOB-588", "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": "11222", "name": "Release 1.2.0", "archived": true, "released": true, "releaseDate": "2010-04-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:36.000+0000", "created": "2011-04-15T02:32:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:36.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": "{html}
Base UI => Views => Table View => Delete Mode(3)
Deleting headers from rows via delete\nrowobj.header;
also does not delete the header.
Possible fix. Now when there are 0 rows in a section, it is\nremoved from the table (which also removes headers, footers, etc.)\nThis may be undesirable because some applications may rely on\nsections existing even AFTER they are empty, for example, apps\nwhich list things alphabetically (which may start with 26 empty\nsections and just fill them up).
\nUncommitted while searching for a better possible solution, and\nlooking into whether or not the delete
issue can be\navoided.
(from [baf1546cf7eb200fbe2b98d5cc987a1c45e25cab])\nCloses #588: Removes empty sections on row delete.\n\nhttp://github.com/appcelerator/titanium_mobile/commit/baf1546cf7eb2...
Calling delete row.header
should be considered\ninvalid. Instead, do that and then immediately update the row in\nthe table using tableView.updateRow()
.
Note that now sections are deleted when empty, and so if a\nsection a user wants to exist doesn't (for example, a section\nindexed by \"B\") they will need to re-create it when adding in some\nrows.