Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-07-10T20:50:28.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2017-07-06T12:35:24.000+0000
Updated2017-08-09T20:39:49.000+0000

Description

Description

When setting height to auto on a listview with many rows, the scrolling will break
var win = Ti.UI.createWindow(),
    list = Ti.UI.createListView({
        templates: {
            template: {
                childTemplates: [
                    {
                        type: 'Ti.UI.Label',
                        bindId: 'title',
                        properties: {
                            left: '5dp'
                        }
                    }
                ]
            }
        },
        defaultItemTemplate: 'template',
		height: 'auto'
    }),
    section = Ti.UI.createListSection(),
    items = [];

for(var i = 0; i <100; i++) {
	items.push({
	    title: { text: 'TEXT' }
	});
}
section.setItems(items);
list.setSections([section]);
win.add(list);
win.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. Ewan Harris 2017-07-07

    Master: https://github.com/appcelerator/titanium_mobile_windows/pull/1037
  2. Samir Mohammed 2017-08-09

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

JSON Source