Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24826] Windows: TableView with Ti.UI.SIZE does not size to fit contents

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2021-02-11T12:13:57.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeUnknown
Created2017-06-15T12:51:59.000+0000
Updated2021-02-11T12:13:57.000+0000

Description

Description

A tableview set to Ti.UI.SIZE does not size itself correctly to fit the contents
var _window = Ti.UI.createWindow();
var rows = [];
for (var i = 0; i < 5; i++) {
    var row = Ti.UI.createTableViewRow({
        width: 100,
        height: 50,
        backgroundColor: 'blue',

    });
    rows.push(row);
};
var table = Ti.UI.createTableView({
    data: rows,
    borderWidth: 1,
    borderRadius: 30,
    borderColor: 'blue',
    rowHeight: 50,
    top: 100,
    left: 100,
    right: 100,
    height: Ti.UI.SIZE
});
_window.add(table);
_window.open();

Steps to reproduce

Add the above to an existing app.js

Build for a windows target

Actual

TableView does not size to fit the contents

Expected

Based off other platforms, the TableView should size to fit the contents

Comments

No comments

JSON Source