{ "id": "82771", "key": "TIMOB-6200", "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": "12086", "description": "", "name": "Sprint 2011-46", "archived": true, "released": true, "releaseDate": "2011-11-21" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T14:29:15.000+0000", "created": "2011-11-16T08:18:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tableview", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "13909", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "82685", "key": "TIMOB-6165", "fields": { "summary": "iOS: Table View: Refreshing the table view causes a redraw issue, it collapse the table and then expands it back", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:17.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": "h1. Problem\r\nCalling setData on a table view after the window has opened now causes the rows to animate in to view. By \"animate in to view\", I mean that they initially start at 0 height, and then expand to their regular height over the course of approximately half a second.\r\n\r\nh2. Expected Behavior\r\nThe rows should appear without any animation, unless I were to somehow specify that I wanted an animation. The existing behavior, before some recent commit to 1.8.0.1, should be maintained.\r\n\r\nh2. Demonstration Video\r\nhttp://www.youtube.com/watch?v=Q8bcT6JqdDE\r\n\r\nh2. How to Reproduce\r\nDrop the following in an app.js, and run it in the simulator.\r\n\r\nA couple of points to note:\r\n\r\n- I was very explicit about the height, although this isn't necessary to see the new animation behavior. I wanted to demonstrate that the issue wasn't caused by automatic height calculations, but is behavior that we introduced only recently.\r\n- If you setData outside of the 'open' event, you won't see the animation.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\n\r\nvar table = Ti.UI.createTableView({\r\n rowHeight: 30\r\n});\r\nwin.add(table);\r\n\r\nwin.addEventListener('open', function (evt) {\r\n table.setData([\r\n { title: 'Row 1', height: 30 },\r\n { title: 'Row 2', height: 30 },\r\n { title: 'Row 3', height: 30 },\r\n { title: 'Row 4', height: 30 },\r\n { title: 'Row 5', height: 30 },\r\n { title: 'Row 6', height: 30 },\r\n { title: 'Row 7', height: 30 },\r\n { title: 'Row 8', height: 30 },\r\n { title: 'Row 9', height: 30 },\r\n { title: 'Row 10', height: 30 }\r\n ]);\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Table View setData Now Animates Rows In", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "version=1.8.0.1\r\ntimestamp=11/15/11 09:46\r\ngithash=3b241d9...\r\n\r\nBROKEN in iPad Simulator 4.3.2\r\nBROKEN on iPad 1 running iOS 4.3.5\r\nBROKEN on iPad 2 running iOS 5.0.1", "comment": { "comments": [ { "id": "172912", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Added a demonstration video.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-11-16T09:19:08.000+0000", "updated": "2011-11-16T09:19:08.000+0000" }, { "id": "172917", "author": { "name": "jeevan", "key": "jeevan", "displayName": "Jeevan Takhar", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Setting animationStyle to none has no effect either:\r\n\r\n{noformat}\r\ntableview.setData(data, {animationStyle: Ti.UI.iPhone.RowAnimationStyle.NONE});\r\n{noformat}", "updateAuthor": { "name": "jeevan", "key": "jeevan", "displayName": "Jeevan Takhar", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-16T09:34:59.000+0000", "updated": "2011-11-16T09:34:59.000+0000" }, { "id": "175172", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112061404\r\n
Ti Mob SDK 1.8.0.1.v20111205011857\r\n
OSX Lion\r\n
iPod Touch 4.3.5, iPhone 4S OS 5.0.1, iPad 2 OS 4.3.5, iPhone Simulator 5.0\r\n\r\nExpected behavior of set data not animating is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T10:28:06.000+0000", "updated": "2011-12-07T10:28:06.000+0000" }, { "id": "178207", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T14:28:38.000+0000", "updated": "2012-01-05T14:28:38.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }