Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24861] Windows: Setting data before seperatorColor on TableView errors out

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-08-17T14:47:05.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-06-20T13:50:35.000+0000
Updated2020-08-05T14:49:48.000+0000

Description

Description

Setting data before seperatorColor on a tableview causes the app to error out
var _window = Ti.UI.createWindow();
var rows = [{
    title: 'Row 1'
}, {
    title: 'Row 2'
}, {
    title: 'Row 3'
}, {
    title: 'Row 4'
}, {
    title: 'Row 1'
}, {
    title: 'Row 2'
}, {
    title: 'Row 3'
}, {
    title: 'Row 4'
}];
var tableview = Ti.UI.createTableView({
    data: rows,
    separatorColor:'blue'
});
_window.add(tableview);
_window.open();

Steps to reproduce

Add the above to an existing app.js

Build for a windows target

Actual

Application errors out, swapping the order of data and separatorColor prevents this

Expected

Application should not error out

Comments

  1. Kota Iguchi 2017-07-10

    https://github.com/appcelerator/titanium_mobile_windows/pull/1035
  2. Kota Iguchi 2017-08-07

    https://github.com/appcelerator/titanium_mobile_windows/pull/1065
  3. Kota Iguchi 2017-08-18

    Merged to 6_2_X https://github.com/appcelerator/titanium_mobile_windows/pull/1079
  4. Ewan Harris 2017-08-21

    Verified in 6.2.0.v20170821001430, closing ticket

JSON Source