Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18410] iOS: ListView checkmarks fly in from top left when view resizes

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-12-11T22:14:11.000+0000
Affected Version/sRelease 3.5.0
Fix Version/sn/a
ComponentsiOS
LabelsCheckmark, ListView
ReporterFokke Zandbergen
AssigneeUnknown
Created2015-01-19T13:47:46.000+0000
Updated2019-12-11T22:14:11.000+0000

Description

When a ListView resizes - e.g. because it's in a PopOver that resizes to make room for the soft keyboard - you can see the checkmark accessories fly in from the top left of their rows. See attached movie.

Steps to reproduce

* Run the following code on an iPad device (or force soft keyboard on Simulator) * Click the button to open the PopOver * Focus the SearchBar to bring the keyboard up so the ListView resizes * See the checkmarks fly in from left

Code to reproduce

var w = Ti.UI.createWindow({
  backgroundColor: 'white'
});

var wb = Ti.UI.createButton({
  title: 'Click me'
});

wb.addEventListener('click', function() {

  var pw = Ti.UI.createWindow({
    width: 300,
    backgroundColor: 'white'
  });

  pw.add(Ti.UI.createListView({
    searchView: Ti.UI.createSearchBar(),
    sections: [Ti.UI.createListSection({
      items: (function() {
        var items = [];

        for (var i = 1; i <= 30; i++) {
          items.push({
            properties: {
              title: 'Row #' + i,
              accessoryType: (i < 3) ? Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK : Ti.UI.LIST_ACCESSORY_TYPE_NONE
            }
          });
        }

        return items;
      })()
    })]
  }));

  var p = Ti.UI.iPad.createPopover({
    contentView: pw
  });

  p.show({
    view: wb
  });

});

w.add(wb);

w.open();

Notes

* The number of items has to be more then fits on the screen

Attachments

FileDateSize
slide.mov2015-01-19T13:47:46.000+00002111791

Comments

  1. Alan Hutton 2019-12-11

    Closing. Unable to reproduce the issue. Axway Appcelerator Studio, build: 5.1.4.201909061933  macOS : 10.15 Node.js Version : 8.9.1 npm Version : 5.5.1 Appcelerator CLI : 7.1.2 Titanium CLI CLI Version : 5.2.1 node-appc Version : 0.2.49 Titanium SDKs : 8.3.0.GA iPad 9.7-inch 13.2.2

JSON Source