{ "id": "85590", "key": "TIMOB-7437", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "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": "2013-04-04T11:41:18.000+0000", "created": "2012-01-26T17:26:17.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T18:44:21.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": "h3.Issue\r\nWhen the vertical height (of one of the parent views) is a float value instead of an integer value (as a result of a math calculation) TableView it bounces after scrolling to bottom of table view.\r\n\r\nFor example, when the vertical height is set to 470 or 471, it does not bounce. If it is set to 470.5, then it bounces.\r\n\r\nh6.Tested on\r\niOS 4.3 iPhone\r\niOS 5 simulator \r\n\r\nh6.Steps to reproduce\r\n1) Run code below *** difficult to reproduce though.\r\n2) Scroll to bottom of tableView in view1 - it doesn't bounce\r\n3) Scroll right to second view\r\n4) Scroll to bottom of tableView in view2 - it bounces\r\n\r\n\r\nh6.Repro sequence\r\n{code:title=app.js}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n////\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar rows = [];\r\n\r\nfor(var i = 0; i <= 50; i++) {\r\n\trows.push(Ti.UI.createTableViewRow({\r\n\t\ttitle : \"Row \" + i,\r\n\t}));\r\n}\r\n\r\nvar tableView1 = Ti.UI.createTableView({\r\n\tdata: rows\r\n});\r\nvar view1 = Ti.UI.createView({\r\n\tbackgroundColor:'red',\r\n\theight:470//it doesn't bounce\r\n});\r\nview1.add(tableView1);\r\n\r\nvar tableView2 = Ti.UI.createTableView({\r\n\tdata: rows\r\n});\r\nvar view2 = Ti.UI.createView({\r\n\tbackgroundColor:'blue',\r\n\theight:470.5//it bounces\r\n});\r\nview2.add(tableView2);\r\n\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n\tviews:[view1, view2],\r\n\tshowPagingControl: true,\r\n\tdisableBounce: true\r\n});\r\n\r\nwin1.add(scrollableView);\r\n\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Bounce in TableView when its parent view has a vertical height set to a float value", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.8.0.1, 1.9\r\nPlatform OS: iOS\r\nPlatform OS Version: 4.3 ", "comment": { "comments": [ { "id": "245701", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 5", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-04T11:41:18.000+0000", "updated": "2013-06-20T11:59:18.000+0000" }, { "id": "412804", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T18:44:21.000+0000", "updated": "2017-03-16T18:44:21.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }