Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24833] Windows: Setting height to auto on a tableview with many rows breaks scrolling

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-07-06T21:02:27.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-06-15T17:00:45.000+0000
Updated2017-08-16T17:23:46.000+0000

Description

Description

When setting height to auto on a tableview with many rows, the scrolling will break
var _window = Ti.UI.createWindow();
var tbl_data = [];
for (var i = 0; i < 50; i++) {
    var row = Ti.UI.createTableViewRow();
    var label = Ti.UI.createLabel({
        left: 10,
        text: 'Row ' + (i + 1)
    });
    row.add(label);
    tbl_data.push(row);
}
var table = Titanium.UI.createTableView({
    height: 'auto',
    data: tbl_data
});
_window.add(table);
_window.open();

Steps to reproduce

Add the above to an existing app.js

Build for a windows target

Actual

When the height is set to auto scrolling breaks

Expected

When the height is set to auto the scrolling should not break

Comments

  1. Kota Iguchi 2017-07-04

    https://github.com/appcelerator/titanium_mobile_windows/pull/1032
  2. Samir Mohammed 2017-08-16

    Verified fix in SDK Version 7.0.0.v20170815065413 and SDK Version: 6.2.0.v20170815130745 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1032

JSON Source