{ "id": "81187", "key": "TIMOB-5456", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:23:52.000+0000", "created": "2011-10-06T08:34:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "reprod", "supportTeam" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-09T19:23:52.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": "h3. Problem\r\n\r\nsetContentInsets of TableView doesn't work.It depends on how many records you add to the table view.\r\nIf you have 4 records on a tableView, the method works well, but if you have 6 or more records, the method does not work. \r\n \r\nh3. Reproducible steps:\r\n \r\n1.Run the code below.\r\n \r\nh3. Expected behavior\r\n\r\nCustomer wants to use setContentInsets on a tableview having 6 or more records on a tableview.\r\n\r\n\r\nh3. Sample Code:\r\n\r\n{code}\r\nvar m_MyWindow = Ti.UI.createWindow();\r\nvar l_EmptyTableView_Data = [];\r\n\r\nvar m_TableView = Titanium.UI.createTableView({\r\n\tallowsSelection : false,\r\n\tminRowHeight : 58,\r\n\theight : 320,\r\n\ttop : 0\r\n});\r\n\r\nm_MyWindow.add(m_TableView);\r\n\r\nvar mbutton = Ti.UI.createButton({\r\n\ttitle : 'press',\r\n\theight : 50,\r\n\twidth : 100\r\n});\r\n\r\nm_MyWindow.add(mbutton);\r\n\r\nm_TableView.data = [{\r\n\ttitle : \"test1\"\r\n}, {\r\n\ttitle : \"test2\"\r\n}, {\r\n\ttitle : \"test3\"\r\n}, {\r\n\ttitle : \"test4\"\r\n}, {\r\n\ttitle : \"test5\"\r\n}, {\r\n\ttitle : \"test6\"\r\n}];\r\n\r\nm_MyWindow.open();\r\nmbutton.addEventListener('click', function(e) {\r\n\r\n\tm_TableView.setContentInsets({\r\n\t\ttop : 60\r\n\t}, {\r\n\t\tanimated : true\r\n\t});\r\n\r\n});\r\n\r\n{code}\r\n\r\nh3. Associated HD Ticket:\r\nAPP-994821 ", "attachment": [], "flagged": false, "summary": "iOS: setContentInsets in a tableview does not work when you have 6 or more records", "creator": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 1.0.4.201108101535\r\n4.3 iOS SDK\r\n1.7.2 Titanium SDK.\r\nSimulator\r\nIpod touch 4.2.1", "comment": { "comments": [ { "id": "250753", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces\n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-08T07:03:34.000+0000", "updated": "2013-05-08T07:03:34.000+0000" }, { "id": "426915", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is still occurring with the following environment;\r\niPhone 6 (10.2)\r\nStudio 4.9.1.201707200100\r\nTi SDK 6.1.2 GA\r\nAppc CLI 6.2.3\r\nTi CLI 5.0.14\r\nAlloy 1.9.13\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-18T21:19:05.000+0000", "updated": "2017-08-18T21:19:05.000+0000" }, { "id": "453565", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. Updating, or creating code may not reproduce the issue reported, or be a valid test case.\r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:23:52.000+0000", "updated": "2020-01-09T19:23:52.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }