{ "id": "81948", "key": "TIMOB-5861", "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": "12084", "description": "", "name": "Sprint 2011-44", "archived": true, "released": true, "releaseDate": "2011-11-07" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-03T12:18:31.000+0000", "created": "2011-10-25T14:27:38.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "module_scrollview", "qe-testadded" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "14051", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "83238", "key": "TIMOB-6385", "fields": { "summary": "iOS: Text Field: Bezel, and line border is not being displayed", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14783", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85467", "key": "TIMOB-7400", "fields": { "summary": "Android: ScrollView - Runtime error generated when scrollView.contentOffset object is used in a call back function", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14784", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85469", "key": "TIMOB-7402", "fields": { "summary": "Android: ScrollView - ScrollView will not scroll when manually set to vertical layout", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-25T14:05:19.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": "h4. Steps To Reproduce:\r\n1. Create a project to run the following app.js.\r\n2. Hit the button then try to move the scrollable contents horizontally.\r\n3. Hit the button again then try to move the scrollable contents horizontally.\r\n\r\nExpected results: After resize the scrollView's width/height and its contentWidth/contentHeight, the scroll view should get updated immediately.\r\nActual results: After resizing, the scroll view is not updated until the view is refreshed(happened when the button is hit again).\r\n\r\n{code:javascript|title=app.js}\r\nvar win = Titanium.UI.createWindow({ \r\n layout:'vertical',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n\tshowHorizontalScrollIndicator:true, showVerticalScrollIndicator:true,\r\n\twidth: 250, height: 100, top: 50,\r\n\tborderColor:'green', borderWidth:1,\r\n\tcontentWidth:1000, contentHeight:100\r\n});\r\n\r\nfor(var i=0; i<10; i++) {\r\n\tfor(var j=0; j<10; j++) {\r\n\t\tscrollView.add(Ti.UI.createLabel({\r\n\t\t\ttop:i*100, left:j*100,\r\n\t\t\twidth:100, height:100,\r\n\t\t\ttext:i+':'+j, textAlign:'center',\r\n\t\t\tcolor:'white',\r\n\t\t\tbackgroundColor:'#A0' + Number(i%2*8).toString(16) +'0'+ Number(8-j%2*8).toString(16)+'0',\r\n\t\t\tborderColor:'black', borderWidth:1 \r\n\t\t}));\r\n\t}\r\n}\r\n\r\nvar button = Ti.UI.createButton({title:'Flip', width:100, height:50});\r\nbutton.addEventListener('click', function() {\r\n\tscrollView.width = 100;\r\n\tscrollView.height = 250;\r\n\t\r\n\tscrollView.contentWidth = 100;\r\n\tscrollView.contentHeight = 1000;\r\n\r\n\tbutton.title = 'Click again';\r\n\t\r\n});\r\n\r\nscrollView.addEventListener('scroll', function() {\r\n\tTi.API.info('Offset: (' + scrollView.contentOffset.x + ', ' + scrollView.contentOffset.y + ')');\r\n});\r\nwin.add(scrollView);\r\nwin.add(button);\r\nwin.open()\r\n{code}\r\n\r\nh4. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-113112\r\n", "attachment": [], "flagged": false, "summary": "iOS: scrollView is not updated correctly.", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac 10.6.8 with SDK version=1.8.0.v20111025092219", "comment": { "comments": [ { "id": "170409", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "What is the scrollable property?", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-25T14:38:41.000+0000", "updated": "2011-10-25T14:38:41.000+0000" }, { "id": "170411", "author": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry Don. I mean the view should get updated immediately. ", "updateAuthor": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-25T14:44:02.000+0000", "updated": "2011-10-25T14:44:02.000+0000" }, { "id": "170489", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I verified that this is indeed broken as specified. Scheduling for 1.8 fix.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-26T08:45:55.000+0000", "updated": "2011-10-26T08:45:55.000+0000" }, { "id": "172057", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull request pending #658", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-11-09T11:57:30.000+0000", "updated": "2011-11-09T11:57:30.000+0000" }, { "id": "175320", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Ti Studio 1.0.7.201112061404\r\n
Ti Mob SDK 1.8.0.1.v20111207091653\r\n
OSX Lion\r\niPhone 4S OS 5.0.1\r\n\r\nExpected behavior is shown where the scroll view is updated immediately", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T17:52:06.000+0000", "updated": "2011-12-07T17:52:06.000+0000" }, { "id": "177879", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Open to add label", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T12:18:14.000+0000", "updated": "2012-01-03T12:18:14.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }