{ "id": "92211", "key": "TIMOB-9466", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-14T11:12:45.000+0000", "created": "2012-05-23T09:33:51.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_scrollview", "parity", "qe-testadded" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-03T16:42:18.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Problem\r\nThe scroll content could change dynamically, but if it is very small, it wants to scroll anyway! The scroll height is fine, but it thinks its content is much larger then it actually is?\r\n\r\nIn iOS the Scrollview it won't scroll due to contents are very small.\r\n\r\nh4.Tested on\r\nh6.Testing on android\r\n2.0.1GA2, 2.0.2.GA > Droid Razr 2.3.5\r\n\r\nh6.Testing on iOS\r\niOS 5 simulator\r\n\r\nh5.app.js\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar win = Titanium.UI.createWindow({ \r\n title:'window',\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar mainView = Ti.UI.createView({\r\n layout: 'vertical',\r\n top: 0,\r\n width: '100%',\r\n height: '100%'\r\n})\r\n \r\nvar image1 = Ti.UI.createImageView({\r\n width: 200,\r\n height: 200,\r\n image: \"KS_nav_views.png\"\r\n})\r\n \r\nvar view = Ti.UI.createView({\r\n backgroundColor: 'blue',\r\n height: '100%',\r\n layout: 'vertical'\r\n});\r\n \r\nvar scroll = Ti.UI.createScrollView({\r\n backgroundColor: \"#444\",\r\n contentHeight: 'auto',\r\n contentWidth: 'auto',\r\n height: '50%',\r\n width: '100%',\r\n showVerticalScrollIndicator : true,\r\n layout: 'vertical',\r\n top : 0\r\n});\r\n \r\nview.add(scroll);\r\n \r\nvar label = Ti.UI.createLabel({\r\n text: 'why does this scroll?'\r\n});\r\n \r\nscroll.add(label);\r\n \r\nvar image2 = Ti.UI.createImageView({\r\n width: 200,\r\n height: '25%',\r\n image: \"KS_nav_ui.png\",\r\n bottom : 0\r\n});\r\n \r\nwin.add(mainView);\r\nmainView.add(image1);\r\nmainView.add(view);\r\nwin.add(image2);\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Scrollview content can think it is bigger then it actually is", "creator": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "environment": "titanium SDK 2.0.1.GA2, 2.0.2.GA\r\nAndroid OS 2.3", "comment": { "comments": [ { "id": "197283", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@Paul Hamilton I've pulled a CI build to test this out. The scrollView area doesn't scrolls anymore (likewise iOS 5 - tested on simulator).\r\n\r\nh6.Specifically this is the CI build tested on\r\n{code}\r\n[INFO] logfile = /Users/egomez/Documents/Titanium Studio Workspace/1iPad/build.log\r\n[DEBUG] /Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120520110234/android/builder.py install 1iPad /Users/egomez/android-sdks /Users/egomez/Documents/Titanium Studio Workspace/1iPad com.appcelerator.ipad 8\r\n[INFO] Titanium SDK version: 2.1.0 (05/20/12 11:02 32b0001)\r\n{code}\r\n\r\nHaving said that, the one can be grab here: http://builds.appcelerator.com.s3.amazonaws.com/index.html\r\n\r\nI'll leave this open for a while in case you have further questions or some more clarifications.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T10:07:51.000+0000", "updated": "2012-06-05T10:07:51.000+0000" }, { "id": "197843", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "Just tested this with 2.0.2.GA and this is still occurring in the android emulator. Tested using 2.3.3 and 2.2 API. with both 480/320 and 800/480 resolutions.", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2012-06-08T07:42:38.000+0000", "updated": "2012-06-08T07:42:38.000+0000" }, { "id": "198508", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "I see what you mean originally. I have never used a CI build before thus i must appologize. I just updated to the most recent 'stable' version (2.0.2). The scrolling issue does seem to be behaving appropriately with CI build 2.1.0.v20120614102250. CI Builds shouldn't give too much trouble i hope?\r\n\r\nThis was giving me major issues with my layout design and using scrollviews that didn't take up the whole screen, but which had to be there when scrolling did occur.\r\n\r\nKeep up the good work.\r\n\r\nThis can be marked as resolved in 2.1 i think.", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2012-06-14T11:05:51.000+0000", "updated": "2012-06-14T11:05:51.000+0000" }, { "id": "198510", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue has most likely been fixed by another layout PR. Marking it resolved based on filer's comments.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T11:12:45.000+0000", "updated": "2012-06-14T11:12:45.000+0000" }, { "id": "199893", "author": { "name": "psingh", "key": "psingh", "displayName": "Payminder Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Titanium Studio: 2.1.0.201206221045\r\nMobile SDK: 2.1.0.v20120622174154\r\nOS: X Lion\r\nDevice: Samsung Galaxy \r\n\r\nCan't reproduce it.\r\n\r\nNo scrolling bar because there is no contents.", "updateAuthor": { "name": "psingh", "key": "psingh", "displayName": "Payminder Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T11:01:39.000+0000", "updated": "2012-06-23T11:01:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }