{ "id": "98743", "key": "TIMOB-10331", "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": "13870", "description": "", "name": "Sprint 2012-16 API", "archived": true, "released": true, "releaseDate": "2012-08-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-09T23:09:04.000+0000", "created": "2012-08-06T13:17:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-port" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-28T16:44:06.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "If you are scrolled to the bottom of a scrollView and then the contentHeight of the scrollView is reduced, you will be shown the bottom where the scrollView was, not the new bottom.\r\n\r\nh4. Steps to repro:\r\n1. run the code below\r\n2. scroll to the bottom \r\n3. click the button\r\n4. notice that you no longer see the blue content view\r\n5. touch the scroll view\r\n6. notice that suddenly you are at the bottom of the blue view\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.open();\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\ttop: 60,\r\n\theight: 400,\r\n\tcontentHeight: Ti.UI.SIZE\r\n});\r\nwin.add(scrollView);\r\n\r\nvar contentView = Ti.UI.createView({\r\n\theight: 1000,\r\n\tbackgroundColor: 'blue',\r\n\tborderWidth: 5,\r\n\tborderRadius: 20,\r\n\tborderColor: 'red'\r\n});\r\nscrollView.add(contentView);\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle: 'Click me',\r\n\twidth: 100,\r\n\theight: 40,\r\n\ttop: 10\r\n});\r\nwin.add(button);\r\n\r\nbutton.addEventListener('click', function(){\r\n\tcontentView.height = 400;\r\n});\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: scrollView - does not handle the contentHeight changing as it should", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK v2.2.0.v20120710122120", "comment": { "comments": [ { "id": "213249", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/2694", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-07T16:04:03.000+0000", "updated": "2012-08-07T16:04:03.000+0000" }, { "id": "216635", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on:\r\nTitanium studio : 2.1.1.201207271312\r\nSDK version : 2.2.0.v20120827143312\r\nChrome 21.0.xx\r\nFirefox 15\r\nSafari 6.0\r\nAndroid 4.0.4 default browser,chrome 18.0.xx ,firefox 15.0\r\nIphone 5.0.1 mobile safari", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-28T16:44:06.000+0000", "updated": "2012-08-28T16:44:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }