{ "id": "90944", "key": "TIMOB-8903", "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" }, { "id": "13401", "description": "Sprint 2012-09 Core", "name": "Sprint 2012-09 Core", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-01T13:02:53.000+0000", "created": "2012-04-26T19:32:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_scrollview", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-09T14:28:26.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": "The view in a scrollView does not resize correctly when the window it is in is rotated to landscape and then back to portrait.\r\nBroken on 2.1.0\r\nWorking on 1.8.2\r\n\r\nh4. Steps to repro:\r\nStep 1: run the code \r\nStep 2: hold the device in portrait and launch the app\r\nStep 3: notice the red views on the left and right of the screen\r\nStep 4: rotate the device to landscape\r\nStep 5: notice the red views move out and stay at the sides of the screen\r\nStep 6: rotate the device back to portrait\r\nStep 7: notice that the views on the right side are missing (they should have moved back in to be at the side of the screen)\r\nStep 8: repeat the steps above with TiSDK 1.8.2 to see the correct behavior\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'blue'});\r\nwin.open();\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tleft:0,\r\n\ttop:0,\r\n\tright:0,\r\n\tbottom:0,\r\n\tcontentHeight:'auto',\r\n\tbackgroundColor: 'green'\r\n});\r\nwin.add(scrollView);\r\n\r\nvar innerView = Ti.UI.createView({\r\n\theight:Ti.UI.SIZE,\r\n\tlayout:'vertical',\r\n\tleft:0,\r\n\ttop:0,\r\n\tright:0\r\n});\r\nscrollView.add(innerView);\r\n\r\nfor(var i = 0; i < 10; i++){\r\n\tvar params = {\r\n\t\tbackgroundColor: 'red',\r\n\t\ttop: 5,\r\n\t\theight: 20,\r\n\t\twidth: 100,\r\n\t}\r\n\t\r\n\tif(i%2 === 0){\r\n\t\tparams.left = 5;\r\n\t}else{\r\n\t\tparams.right = 5;\r\n\t}\r\n\t\r\n\tinnerView.add(Ti.UI.createView(params));\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: scrollView - does not resize width of content with device is rotated", "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 2.1.0\r\nHTC Sensation 2.3.3", "comment": { "comments": [ { "id": "193215", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Layout issue. Marking this as core", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T15:47:37.000+0000", "updated": "2012-04-30T15:47:37.000+0000" }, { "id": "198732", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.1.0.v20120614102250 on Droid 3 2.3.4", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T12:58:25.000+0000", "updated": "2012-06-15T12:58:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }