{ "id": "106054", "key": "TIMOB-13401", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-14T09:10:07.000+0000", "created": "2012-12-06T10:24:14.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "animation", "tableview" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "30068", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "116723", "key": "AC-2172", "fields": { "summary": "iOS: TableViewRow with { animated:false } doesn't work, still animated", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "32692", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "121365", "key": "TIMOB-15536", "fields": { "summary": "iOS7: TableView.deleteRow() animationStyle doesn't work properly if called after setting hasCheck()", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2015-11-05T21:39:28.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*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 (not tested)\r\n\r\n*sample*\r\n{code}\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\talert('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\t//determine platform and form factor and render approproate components\r\n\tvar win = Ti.UI.createWindow({\r\n\t\twidth : Ti.UI.FILL,\r\n\t\theight : Ti.UI.FILL,\r\n\t});\r\n\r\n\tvar tv = Ti.UI.createTableView({\r\n\t\twidth : Ti.UI.FILL,\r\n\t\theight : Ti.UI.FILL,\r\n\t});\r\n\tvar rows = [];\r\n\tfor (var i = 0; i < 50; i++) {\r\n\t\trows.push(Ti.UI.createTableViewRow({\r\n\t\t\ttitle : 'Row ' + i\r\n\t\t}));\r\n\t}\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\ttitle : 'Insert Row Before 0'\r\n\t});\r\n\trow.addEventListener('click', function() {\r\n\t\ttv.insertRowBefore(0, {\r\n\t\t\ttitle : 'Row inserted before 0'\r\n\t\t});\r\n\t});\r\n\trows.push(row);\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\ttitle : 'Insert Row Before 1'\r\n\t});\r\n\trow.addEventListener('click', function() {\r\n\t\ttv.insertRowBefore(1, {\r\n\t\t\ttitle : 'Row inserted before 1 w/o anim'\r\n\t\t}, {\r\n\t\t\tanimationStyle : Ti.UI.iPhone.RowAnimationStyle.NONE\r\n\t\t});\r\n\t});\r\n\trows.push(row);\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\ttitle : 'Insert Row Before this'\r\n\t});\r\n\trow.addEventListener('click', function(e) {\r\n\t\ttv.insertRowBefore(e.index, {\r\n\t\t\ttitle : 'Row inserted before 0'\r\n\t\t});\r\n\t});\r\n\trows.push(row);\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\ttitle : 'Insert Row Before this'\r\n\t});\r\n\trow.addEventListener('click', function(e) {\r\n\t\ttv.insertRowBefore(e.index, {\r\n\t\t\ttitle : 'Row inserted before w/o anim'\r\n\t\t}, {\r\n\t\t\tanimationStyle : Ti.UI.iPhone.RowAnimationStyle.NONE,\r\n\t\t\tanimated : false,\r\n\t\t});\r\n\t});\r\n\trows.push(row);\r\n\ttv.data = rows;\r\n\twin.add(tv);\r\n\twin.open();\r\n})();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS 6: insertRowBefore uses animation with animated set to false and animationStyle set to none", "creator": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "environment": "3.0.2 GA\r\n3.1 CI\r\niOS 6.0.1", "closedSprints": [ { "id": 485, "state": "closed", "name": "2015 Sprint 19 SDK", "startDate": "2015-09-12T00:30:29.539Z", "endDate": "2015-09-26T00:30:00.000Z", "completeDate": "2015-09-28T02:29:14.458Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "230201", "author": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "body": "it seems that also insertRowAfter is affected and that animation properties are ignored at all. i tried also bottom and top for insertRowBefore and insertRowAfter and it always looks the same", "updateAuthor": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-06T10:31:13.000+0000", "updated": "2012-12-06T10:31:13.000+0000" }, { "id": "245922", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed iOS 6 simulator, 3.0.2 GA, latest 3.1 master", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T09:06:37.000+0000", "updated": "2013-04-05T09:06:37.000+0000" }, { "id": "363625", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR pending: https://github.com/appcelerator/titanium_mobile/pull/7170", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-11T20:24:27.000+0000", "updated": "2015-09-11T20:24:27.000+0000" }, { "id": "363767", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "APPROVED! PR merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-09-14T09:09:53.000+0000", "updated": "2015-09-14T09:09:53.000+0000" }, { "id": "369124", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.2 (15C31f)\r\nStudio 4.4.0.201511040454\r\nTi SDK 5.1.0.v20151104190037\r\nAppc NPM 4.2.1\r\nAppc CLI 5.1.0-42\r\nTi CLI 5.0.5\r\nAlloy 1.7.23\r\nArrow 1.3.18\r\nXcode 7.2 (7C46t)\r\nNode v0.12.7\r\nJava 1.7.0_80\r\nproduction\r\n\r\nTested with above sample code and minor modifications to cover additional cases. Rows added using the animationStyle of NONE or with animated set to false do not have an animation.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-05T21:39:28.000+0000", "updated": "2015-11-05T21:39:28.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }