Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18202] MobileWeb: Alternate tableview sections show no seperators

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-10T06:57:47.000+0000
Affected Version/sRelease 3.4.1
Fix Version/sRelease 4.1.0
ComponentsMobileWeb
LabelsTSP
ReporterJamie Buckley
AssigneeChris Barber
Created2014-12-15T14:34:40.000+0000
Updated2015-06-09T01:07:36.000+0000

Description

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.

Comments

  1. Chris Barber 2015-04-03

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/6761 4_0_X pull request: https://github.com/appcelerator/titanium_mobile/pull/6762
  2. Feon Sua Xin Miao 2015-04-10

    PR merged.
  3. Lokesh Choudhary 2015-06-09

    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

JSON Source