Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26689] Windows: Wrong height for TableViewRow with Label

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2019-03-05T15:08:12.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2019-01-04T05:02:59.000+0000
Updated2019-03-05T15:08:12.000+0000

Description

The height of first TableView row is rendered too big compared to other rows when row has a Label with relative width (e.g. "_80%_").
var win = Ti.UI.createWindow();
var tableView = Ti.UI.createTableView({
    width: Ti.UI.FILL,
    height: Ti.UI.FILL,
    data: [createRow(), createRow(), createRow()]
});
win.add(tableView);

function createRow() {

    var uid = (new Date()).getTime();

    var row = Ti.UI.createTableViewRow({
        borderWidth: 1, borderColor: '#F0F',
    });

    var label1 = Ti.UI.createLabel({
        width: '80%',
        text: 'Test 1 ' + uid,
        borderWidth: 1, borderColor: '#FF0'
    });
    row.add(label1);

    return row;
}

win.open();
Expected: The height of first row should have same height with other rows.

Attachments

FileDateSize
wrong.png2019-01-04T05:07:07.000+000025091

Comments

  1. Kota Iguchi 2019-01-07

    https://github.com/appcelerator/titanium_mobile_windows/pull/1344
  2. Samir Mohammed 2019-03-04

    FR Passed. Waiting on Jenkins build.
  3. Kota Iguchi 2019-03-05

    Merged into master.
  4. Samir Mohammed 2019-03-05

    *Closing ticket.* Fix verified in SDK Version 8.1.0.v20190304181927. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1344

JSON Source