{ "id": "155606", "key": "AC-3369", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2016-03-20T17:10:01.000+0000", "created": "2016-03-10T16:51:11.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2016-03-20T17:10:01.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "There is a bug in the following tableview methods: \"insertRowBefore\", \"insertRowAfter\", \"insertSectionBefore\", \"insertSectionAfter\" where specifying the \"animated\" property to true has no effect and the tableview still scrolls downwards to show the newly inserted row.", "attachment": [], "flagged": false, "summary": "Bug in tableview methods: \"insertRowBefore\", \"insertRowAfter\", \"insertSectionBefore\", \"insertSectionAfter\" - \"animation\" option has no effect", "creator": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium Version 5.2.0.GA", "comment": { "comments": [ { "id": "379624", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nPlease provide a regeneratable sample code for each of the issue you have mentioned above. We will try it in our environment if the issue is regeneratable or not. Please use the latest SDK 5.2.0.GA for your test. Also please provide a complete list of steps to follow. \r\n\r\nThanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-13T15:27:09.000+0000", "updated": "2016-03-13T15:27:24.000+0000" }, { "id": "379672", "author": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "body": "1) Create a sample app with a tableview in the main window.\r\n2) initialize the tableview with about 20 or more rows so that they fill the entire screen when the app is launched. Also, add code during initialization to scroll the tableview to the bottommost row.\r\n3) Add a button somewhere on the screen that when clicked inserts a new row.\r\n4) Write \"click\" or \"singletap\" event handler for the button to execute \"insertRowBefore(0,{animated:false})\"\r\n5) Run the test by launching the app and clicking the button. Notice that, despite the presence of \"animated:false\" parameter, clicking the button causes the tableview to scroll to display the newly inserted row.", "updateAuthor": { "name": "parijatsahai", "key": "parijatsahai", "displayName": "Parijat sahai", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-14T16:45:40.000+0000", "updated": "2016-03-14T16:45:40.000+0000" }, { "id": "379720", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nThanks for sharing with us. I have tested that issue you reported. It is not a valid issue. Setting \"animated:false” is working as expected. And it doesn’t let the tabeview to animate to the newly inserted row. I have tested the below code.\r\n\r\n*Testing Environment:*\r\n\r\n*Appcelerator CLI*\r\n Installer = 4.2.3\r\n Core Package = 5.2.0\r\n\r\n*Operating System* \r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8.0GB\r\n\r\n*Node.js*\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\n\r\n*Titanium CLI*\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\n*Java Development Kit*\r\n Version = 1.7.0_25\r\n\r\n*Xcode:* Version 7.1.1 \r\n\r\n*Titanium SDK:* 5.2.0.GA\r\n\r\n*Platform:* iOS\r\n*iOS Simulator:* iPhone 6/ iOS 9.1\r\n\r\n*Test Code:*\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\n\r\n\r\nvar tableData = [ {title: 'Apples1'}, {title: 'Bananas2'}, {title: 'Carrots3'}, {title: 'Potatoes4'},{title: 'Apples5'}, \r\n\r\n {title: 'Bananas6'}, {title: 'Carrots7'}, {title: 'Potatoes8'}, {title: 'Carrots9'}, {title: 'Potatoes10'},\r\n\r\n {title: 'Apples11'}, {title: 'Bananas12'}, {title: 'Carrots13'}, {title: 'Potatoes14'},{title: 'Apples15'}, \r\n\r\n {title: 'Bananas16'}, {title: 'Carrots17'}, {title: 'Potatoes18'}, {title: 'Carrots19'}, {title: 'Potatoes20'}\r\n\r\n ];\r\n\r\n\r\n\r\nvar table = Ti.UI.createTableView({\r\n\r\n data: tableData\r\n\r\n});\r\n\r\n\r\n\r\n\r\n\r\nvar button = Titanium.UI.createButton({\r\n\r\ntitle : 'Click Me',\r\n\r\ntop : 10,\r\n\r\nwidth : 100,\r\n\r\nheight : 50,\r\n\r\nbackgroundColor : 'green'\r\n\r\n});\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\r\nvar row = Ti.UI.createTableViewRow({\r\n\r\ntitle: \"New add apple21\"\r\n\r\n});\r\n\r\ntable.insertRowBefore(0, row,{animated:false});\r\n\r\n//table.insertRowBefore(0, row,{animated:true});\r\n\r\n//table.insertRowAfter(1, row,{animated:false});\r\n\r\n//table.insertRowAfter(1, row,{animated:true});\r\n\r\n\r\n\r\n});\r\n\r\n\r\n\r\ntable.add(button);\r\n\r\nwin.add(table);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n*Test Result*\r\nIt doesn’t animate when clicking the button in the tableview during display the newly inserted row.\r\n\r\n\r\n*Steps to Reproduce.*\r\nOpen your Studio\r\nCreate new project\r\nCopy the above code and paste it in *app.js* file\r\nRun the project\r\nClick the “*Click Me*” button to create new row.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-15T08:29:32.000+0000", "updated": "2016-03-16T15:24:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }