{ "id": "64249", "key": "TIMOB-3600", "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": "11359", "description": "Mobile 1.8.0 M06", "name": "Sprint 2011-27", "archived": true, "released": true, "releaseDate": "2011-07-11" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-10-27T15:50:40.000+0000", "created": "2011-04-15T14:53:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" }, { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "10871", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "65910", "key": "TIMOB-4251", "fields": { "summary": "Reimplement TableViews and provide minimal dynamic data source API", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:51:04.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\nChanging the \"hasCheck\" property of a row in a table causes the views to visibly \"jump\". By \"jump\" I mean the rows suddenly move down 10 pixels for a split second, then move back to where they were before.\r\n\r\nh2. Expected Behavior\r\nWhile the row does resize a bit horizontally to account for the check mark, it shouldn't influence the vertical sizing or positioning of elements. Therefore, this \"jump\" isn't something expected.\r\n\r\nh2. Sample Code\r\nThe following creates a simple table with two rows. Run it in the iOS simulator, and touch the rows to toggle \"hasCheck\". The top row will jump, the bottom row behaves normally. NOTE: the only difference between the jumpy and normal rows are the \"top\" and \"bottom\" properties (... and the text)!\r\n\r\n{code:title=app.js|borderStyle=solid}\r\n// window\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\nwin.open();\r\n\r\n// table\r\nwin.add(table = Ti.UI.createTableView({\r\n rowHeight: 80\r\n}));\r\ntable.addEventListener('click', function (e) {\r\n e.row.hasCheck = !e.row.hasCheck;\r\n});\r\n\r\n// jumpy row\r\nvar row = Ti.UI.createTableViewRow();\r\nrow.add(Ti.UI.createLabel({\r\n text: 'Touch To Check + Jump Me (Bottom Aligned Label)',\r\n bottom: 0, left: 0,\r\n height: 'auto', width: 250\r\n}));\r\ntable.appendRow(row);\r\n\r\n// solid row\r\nvar row2 = Ti.UI.createTableViewRow();\r\nrow2.add(Ti.UI.createLabel({\r\n text: 'Touch To Check Me (Top Aligned Label)',\r\n top: 0, left: 0,\r\n height: 'auto', width: 250\r\n}));\r\ntable.appendRow(row2);\r\n{code} \r\n\r\nh2. Associated Helpdesk Ticket\r\nhttp://support-admin.appcelerator.com/display/LZW-54742-861", "attachment": [], "flagged": false, "summary": "iOS: TableViewRow \"hasCheck\" Causes Views Attached to Bottom of Row To Jump", "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": null, "comment": { "comments": [ { "id": "158832", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking resolved as the pull req was merged.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T16:19:00.000+0000", "updated": "2011-07-06T16:19:00.000+0000" }, { "id": "164018", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110819142548\niPhone 4.3.4\niPad2 4.3.2\nMotorola Xoom 3.2\nNexus One 2.2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T10:56:34.000+0000", "updated": "2011-08-25T10:56:34.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }