Problem
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
});
m_MyWindow.add(m_TableView);
var mbutton = Ti.UI.createButton({
title : 'press',
height : 50,
width : 100
});
m_MyWindow.add(mbutton);
m_TableView.data = [{
title : "test1"
}, {
title : "test2"
}, {
title : "test3"
}, {
title : "test4"
}, {
title : "test5"
}, {
title : "test6"
}];
m_MyWindow.open();
mbutton.addEventListener('click', function(e) {
m_TableView.setContentInsets({
top : 60
}, {
animated : true
});
});
Associated HD Ticket:
APP-994821
issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 iOS iPhone Simulator: iOS SDK version: 6.0
This is still occurring with the following environment; iPhone 6 (10.2) Studio 4.9.1.201707200100 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
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.