Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24848] Windows: ListView template with left and right defined causes crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-07-27T13:16:16.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterGary Mathews
AssigneeKota Iguchi
Created2017-06-19T11:57:10.000+0000
Updated2017-08-14T11:13:34.000+0000

Description

- Creating a template View with left and right properties defined causes a crash when more than two items are added to the list
var win = Ti.UI.createWindow({ backgroundColor: 'white' }),
    list = Ti.UI.createListView({
        templates: {
            template: {
                childTemplates: [
                    {
                        type: 'Ti.UI.Label',
                        bindId: 'title',
                        properties: {
                            left: '5dp',
                            right: '5dp'
                        }
                    }
                ]
            }
        },
        defaultItemTemplate: 'template'
    }),
    section = Ti.UI.createListSection(),
    items = [];

for (var i = 0; i < 3; i++) {
    items.push({
        title: { text: 'TEXT' }
    });
}
section.setItems(items);
list.setSections([section]);

win.add(list);
win.open();

Comments

  1. Kota Iguchi 2017-06-29

    https://github.com/appcelerator/titanium_mobile_windows/pull/1025
  2. Ewan Harris 2017-07-27

    6_2_X backport merged in https://github.com/appcelerator/titanium_mobile_windows/pull/1048 Awaiting the build before closing
  3. Ewan Harris 2017-08-14

    Verified in 6.2.0.v20170811022027

JSON Source