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

Android: ListView items with border would not render correctly when scrolling

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.1
    • Fix Version/s: Release 6.2.0
    • Component/s: Android
    • Labels:
    • Story Points:
      5
    • Sprint:
      2017 Sprint 13 SDK

      Description

      • Sometimes items with borderWidth would not render correctly when scrolling fast down a ListView

      var win = Ti.UI.createWindow({backgroundColor: 'gray'}),
          list = Ti.UI.createListView({
              templates: {
                  template: {
                      childTemplates: [
                          {
                              type: 'Ti.UI.View',
                              bindId: 'item',
                              properties: {
                                  top: '5dp', bottom: '5dp',
                                  width: '200dp', height: '50dp',
                                  borderWidth: '8dp',
                                  backgroundColor: 'green'
                              }
                          }
                      ]
                  }
              },
              defaultItemTemplate: 'template'
          }),
          section = Ti.UI.createListSection(),
          items = [];
       
      for (var i = 0; i < 24; i++) {
          var colour = i % 2 ? 'green' : 'yellow';
          items.push({
              item: {
                  backgroundColor: colour,
                  borderColor: colour
              }
          });
      }
       
      section.setItems(items);
      list.setSections([section]);
       
      win.add(list);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gmathews Gary Mathews
              Reviewer:
              Yordan Banev
              Tester:
              Josh Longton
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code