Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24942

Windows: Setting height to auto on a listview with many rows breaks scrolling

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.1.v20170614134051
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      5
    • Sprint:
      2017 Sprint 14 SDK

      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
      1. Add the above to an existing app.js
      2. 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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eharris Ewan Harris
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Kota Iguchi
                Tester:
                Samir Mohammed
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10876
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code