{ "id": "116723", "key": "AC-2172", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-07-03T17:22:10.000+0000", "created": "2013-07-01T23:13:25.000+0000", "labels": [ "animated", "animations", "ios", "tableViewRow" ], "versions": [], "issuelinks": [ { "id": "30068", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "106054", "key": "TIMOB-13401", "fields": { "summary": "iOS 6: insertRowBefore uses animation with animated set to false and animationStyle set to none", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The same as TIMOB-13401:\r\n\r\n*Description*\r\ninsertRowBefore uses a fade animation although animated is set to false and animationStyle is set to NONE (see code sample)\r\n\r\n*Expected result*\r\nrow is simply inserted without an animation\r\n\r\n*Current result*\r\nrow is inserted with fade animation\r\n\r\n*Additional notes*\r\nmight also apply to insertRowAfter and appendRow and deleteRow\r\n\r\n*Sample*\r\n{code:javascript}\r\n/*\r\n* Single Window Application Template:\r\n* A basic starting point for your application. Mostly a blank canvas.\r\n*\r\n* In app.js, we generally take care of a few things:\r\n* - Bootstrap the application with any data we need\r\n* - Check for dependencies like device type, platform version or network connection\r\n* - Require and open our top-level UI component\r\n*\r\n*/\r\n \r\n//bootstrap and check dependencies\r\nif (Ti.version < 1.8) {\r\n alert('Sorry - this application template requires Titanium Mobile SDK 1.8 or later');\r\n}\r\n \r\n// This is a single context application with mutliple windows in a stack\r\n(function() {\r\n //determine platform and form factor and render approproate components\r\n var win = Ti.UI.createWindow({\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.FILL,\r\n });\r\n \r\n var tv = Ti.UI.createTableView({\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.FILL,\r\n });\r\n var rows = [];\r\n for (var i = 0; i < 50; i++) {\r\n rows.push(Ti.UI.createTableViewRow({\r\n title : 'Row ' + i\r\n }));\r\n }\r\n var row = Ti.UI.createTableViewRow({\r\n title : 'Insert Row Before 0'\r\n });\r\n row.addEventListener('click', function() {\r\n tv.insertRowBefore(0, {\r\n title : 'Row inserted before 0'\r\n });\r\n });\r\n rows.push(row);\r\n var row = Ti.UI.createTableViewRow({\r\n title : 'Insert Row Before 1'\r\n });\r\n row.addEventListener('click', function() {\r\n tv.insertRowBefore(1, {\r\n title : 'Row inserted before 1 w/o anim'\r\n }, {\r\n animationStyle : Ti.UI.iPhone.RowAnimationStyle.NONE\r\n });\r\n });\r\n rows.push(row);\r\n var row = Ti.UI.createTableViewRow({\r\n title : 'Insert Row Before this'\r\n });\r\n row.addEventListener('click', function(e) {\r\n tv.insertRowBefore(e.index, {\r\n title : 'Row inserted before 0'\r\n });\r\n });\r\n rows.push(row);\r\n var row = Ti.UI.createTableViewRow({\r\n title : 'Insert Row Before this'\r\n });\r\n row.addEventListener('click', function(e) {\r\n tv.insertRowBefore(e.index, {\r\n title : 'Row inserted before w/o anim'\r\n }, {\r\n animationStyle : Ti.UI.iPhone.RowAnimationStyle.NONE,\r\n animated : false,\r\n });\r\n });\r\n rows.push(row);\r\n tv.data = rows;\r\n win.add(tv);\r\n win.open();\r\n})();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: TableViewRow with { animated:false } doesn't work, still animated", "creator": { "name": "jmasip", "key": "jmasip", "displayName": "Jordi Masip i Riera", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jmasip", "key": "jmasip", "displayName": "Jordi Masip i Riera", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "260773", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Jordi,\r\n\r\nAny reason you filed it if you know it's the same as TIMOB-13401?\r\n\r\nClosing as duplicate.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T17:22:10.000+0000", "updated": "2013-07-03T17:22:10.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }