Problem Description
When creating a tableview with multiple sections in mobileweb every other section does not show a seperator.
Test Case
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow();
var sectionFruit = Ti.UI.createTableViewSection({
headerTitle : 'Fruit'
});
sectionFruit.add(Ti.UI.createTableViewRow({
title : 'Apples'
}));
sectionFruit.add(Ti.UI.createTableViewRow({
title : 'Bananas'
}));
var sectionVeg = Ti.UI.createTableViewSection({
headerTitle : 'Vegetables'
});
sectionVeg.add(Ti.UI.createTableViewRow({
title : 'Carrots'
}));
sectionVeg.add(Ti.UI.createTableViewRow({
title : 'Potatoes'
}));
var sectionFish = Ti.UI.createTableViewSection({
headerTitle : 'Fish'
});
sectionFish.add(Ti.UI.createTableViewRow({
title : 'Cod'
}));
sectionFish.add(Ti.UI.createTableViewRow({
title : 'Haddock'
}));
var sectionFish2 = Ti.UI.createTableViewSection({
headerTitle : 'Fish'
});
sectionFish2.add(Ti.UI.createTableViewRow({
title : 'Cod'
}));
sectionFish2.add(Ti.UI.createTableViewRow({
title : 'Haddock'
}));
var table = Ti.UI.createTableView({
data : [sectionFruit, sectionFish, sectionVeg, sectionFish2],
separatorColor : "#000"
});
win.add(table);
win.open();
Expected Result
All sections should show seperators between rows.
Actual Result
Alternate sections do not show seperators.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/6761 4_0_X pull request: https://github.com/appcelerator/titanium_mobile/pull/6762
PR merged.
Verified the fix. All sections show separators as expected. Closing. Environment: Appc Studio : 4.1.0.201505071004 Ti SDK : 4.1.0.v20150605164428 Ti CLI : 4.0.1 Alloy : 1.6.0 MAC Yosemite : 10.10.3 Appc npm : 4.0.0 Appc CLI : 4.0.2-rc2 Node: v0.10.37