Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25273] Windows: TableViewRow does not fill size of TableView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-10-16T16:52:43.000+0000
Affected Version/sRelease 6.0.4, Release 6.1.2, Release 7.0.0, Release 6.2.0
Fix Version/sRelease 6.3.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-09-13T13:10:22.000+0000
Updated2017-10-17T14:40:04.000+0000

Description

Description

When using Ti.UI.FILL (or setting width to a suitable number), a TableViewRow will never fill the size of the TableView and there will be padding on either side of the TableViewRow. Code has border to attempt to highlight where the TableViewRow ends, you will notice TIMOB-24855 in this test case too I tried playing around with the [XAML ListView example](https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/XamlListView) and that seems to always go to the edge so I don't think it's a platform limitation
var _window = Ti.UI.createWindow({ backgroundColor: 'green' });
var row = Titanium.UI.createTableViewRow({
    width: Ti.UI.FILL,
    height: 150,
    backgroundColor: 'blue',
    borderWidth: 4,
    borderColor: 'pink'

});
var data = [row];
var table = Titanium.UI.createTableView({
    width: Ti.UI.FILL,
    data: data,
    borderWidth: 4,
    borderColor: 'blue',
    width: 600
});
_window.add(table);
_window.open()

Steps to reproduce

Add above code to an existing app.js and build for Windows

Actual

TableViewRow has padding on left and right, not filling TableView

Expected

TableViewRow should size to fit the TableView (to edge of the blue border)

Attachments

FileDateSize
desktop.png2017-09-13T13:10:12.000+000021151
mobile.png2017-09-13T13:10:20.000+00006171

Comments

  1. Kota Iguchi 2017-09-27

    https://github.com/appcelerator/titanium_mobile_windows/pull/1120
  2. Kota Iguchi 2017-09-27

    6_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1121
  3. Samir Mohammed 2017-10-17

    Verified fix in SDK version: 6.3.0.v20171017063048 and SDK version: 7.0.0.v20171017022901. Test and other information can be found at: 6_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1121 Master: https://github.com/appcelerator/titanium_mobile_windows/pull/1120

JSON Source