Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17620] iOS: Unable to disable animation for ListSection.*Items(At) methods

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2014-11-04T17:04:41.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsiOS
LabelsTCSupport, animated, listsection
ReporterFokke Zandbergen
AssigneeVishal Duggal
Created2014-09-04T08:55:19.000+0000
Updated2017-03-23T18:04:36.000+0000

Description

Problem Description

This ticket is related to TIMOB-16115 as it is the same bug, but now also found in insertItemsAt(), replaceItemsAt() and appendItems(). - Video: http://www.screencast.com/t/wI99ro2OuZ0

Steps to reproduce

1. Create new mobile project (classic titanium) 2. Paste this code into app.js
var items = [
    {properties: {title: 'Cod'}},
    {properties: {title: 'Haddock'}},
    {properties: {title: 'Fish'}},
    {properties: {title: 'Clam'}}
];

var section = Ti.UI.createListSection();
section.setItems(items);
 
var list = Ti.UI.createListView({
    top: 60
});
list.appendSection(section);

var insert = Ti.UI.createButton({
    title: 'Insert'
});

insert.addEventListener('click', function(e) {
    section.insertItemsAt(1, items, {
        animated: false,
        animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
    });
});

var replace = Ti.UI.createButton({
    title: 'Replace'
});

replace.addEventListener('click', function(e) {
    section.replaceItemsAt(1, 1, items, {
        animated: false,
        animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
    });
});

var append = Ti.UI.createButton({
    title: 'Append'
});

append.addEventListener('click', function(e) {
    section.appendItems(items, {
        animated: false,
        animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
    });
});

var set = Ti.UI.createButton({
    title: 'Set'
});

set.addEventListener('click', function(e) {
    section.setItems(items, {
        animated: false,
        animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE
    });
});

var toolbar = Ti.UI.iOS.createToolbar({
    top: 20,
    items: [insert, append, replace, set],
    extendBackground: true
});
 
var win = Ti.UI.createWindow();

win.add(toolbar);
win.add(list);

win.open();
3. Run it simulator.

Attachments

FileDateSize
listsectionanim.mov2014-09-04T08:55:19.000+0000738032

Comments

  1. Vishal Duggal 2014-11-04

    Marking as duplicate of TIMOB-16115
  2. Lee Morris 2017-03-23

    Closing ticket as duplicate with reference to the linked issues above.

JSON Source