Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5456] iOS: setContentInsets in a tableview does not work when you have 6 or more records

GitHub Issuen/a
ResolutionWon't Do
Resolution Date2020-01-09T19:23:52.000+0000
Affected Version/sRelease 1.7.2, Release 3.1.0, Release 3.2.0
Fix Version/sn/a
Labelsapi, reprod, supportTeam
ReporterFrancisco Antonio Duran Ramirez
AssigneeEric Merriman



setContentInsets of TableView doesn't work.It depends on how many records you add to the table view. If you have 4 records on a tableView, the method works well, but if you have 6 or more records, the method does not work.

Reproducible steps:

1.Run the code below.

Expected behavior

Customer wants to use setContentInsets on a tableview having 6 or more records on a tableview.

Sample Code:

var m_MyWindow = Ti.UI.createWindow();
var l_EmptyTableView_Data = [];

var m_TableView = Titanium.UI.createTableView({
	allowsSelection : false,
	minRowHeight : 58,
	height : 320,
	top : 0


var mbutton = Ti.UI.createButton({
	title : 'press',
	height : 50,
	width : 100


m_TableView.data = [{
	title : "test1"
}, {
	title : "test2"
}, {
	title : "test3"
}, {
	title : "test4"
}, {
	title : "test5"
}, {
	title : "test6"

mbutton.addEventListener('click', function(e) {

		top : 60
	}, {
		animated : true


Associated HD Ticket:



  1. jithinpv 2013-05-08

    issue reproduces Tested with Titanium Studio, build: Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0
  2. Lee Morris 2017-08-18

    This is still occurring with the following environment; iPhone 6 (10.2) Studio Ti SDK 6.1.2 GA Appc CLI 6.2.3 Ti CLI 5.0.14 Alloy 1.9.13 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131
  3. Alan Hutton 2020-01-09

    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. If 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.

JSON Source