Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24832] Windows: Unable to set a footerView or headerView on a TableView after data has been set

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-11-08T23:39:56.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 7.0.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-06-15T16:31:30.000+0000
Updated2017-11-16T02:30:36.000+0000

Description

Description

Using the code below, when adding a footerView or headerView to a TableView after the rows data has been set they will not show
var _window = Ti.UI.createWindow();
var v = Ti.UI.createView({
    width: Ti.UI.FILL,
    height: 50,
    backgroundColor: 'red'
});
var t = Ti.UI.createTableView({
    footerView: v
});
t.setData([{title: 'Row 1'}]);
t.setHeaderView(Ti.UI.createView({
    width: Ti.UI.FILL,
    height: 50,
    backgroundColor: 'red'
}));
_window.add(t);
_window.open();

Steps to reproduce

Add the above to an existing app.js

Build for a windows target

Actual

View is not added

Expected

View should be added

Comments

  1. Ewan Harris 2017-06-15

    Probably a dupe of TIMOB-24116, my bad
  2. Kota Iguchi 2017-10-23

    https://github.com/appcelerator/titanium_mobile_windows/pull/1148
  3. Abir Mukherjee 2017-11-16

    Changes are seen in 7.0.0.v20171115153702.

JSON Source