{ "id": "66225", "key": "TIMOB-5572", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-06-06T06:25:10.000+0000", "created": "2011-06-06T03:23:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mnegadaylov", "key": "mnegadaylov", "displayName": "Maxim Negadaylov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T20:47:55.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": "When contentOffset property of the scrollView object is defined it adds the x and y values to the scrollView size instead of creating offset into the scrollView.\r\n{code:JavaScript}\r\nwin = Ti.UI.currentWindow;\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\nleft: 10,\r\ntop: 10,\r\nwidth: 300,\r\nheight: 300,\r\nfocusable: true,\r\nbackgroundSelectedColor: 'red',\r\nbackgroundColor: '#FFD',\r\ncontentHeight: 100,\r\ncontentWidth: 100,\r\ncontentOffset: {x:150, y:150}\r\n});\r\n\r\nwin.add(scrollView);\r\n\r\nvar button1 = Ti.UI.createButton({\r\n\tleft: 10,\r\n\ttop: 10,\r\n\ttitle: 'button1',\r\n\twidth: 100,\r\n\theight: 100\r\n})\r\n\r\nvar button2 = Ti.UI.createButton({\r\n\tleft: 10,\r\n\ttop: 120,\r\n\ttitle: 'button2',\r\n\twidth: 500,\r\n\theight: 100\r\n})\r\nvar button3 = Ti.UI.createButton({\r\n\tleft: 10,\r\n\ttop: 240,\r\n\ttitle: 'button3',\r\n\twidth: 100,\r\n\theight: 100\r\n})\r\nvar button4 = Ti.UI.createButton({\r\n\tleft: 800,\r\n\ttop: 800,\r\n\ttitle: 'button4',\r\n\twidth: 100,\r\n\theight: 100\r\n})\r\n\r\nscrollView.add(button1);\r\nscrollView.add(button2);\r\nscrollView.add(button3);\r\nscrollView.add(button4);\r\n\r\nbutton1.addEventListener('click',function(){\r\n\tscrollView.showHorizontalScrollIndicator = false;\r\n\tbutton1.title = 'changed';\r\n})\r\n\r\n\r\nbutton2.addEventListener('click',function(){\r\n\tscrollView.showVerticalScrollIndicator = false;\r\n\tbutton2.title = 'changed';\r\n})\r\n\r\nbutton3.addEventListener('click',function(){\r\n\tscrollView.focusable = false;\r\n\tbutton3.title = 'changed';\r\n})\r\n\r\nbutton4.addEventListener('click',function(){\r\n\tscrollView.scrollTo(20,20);\r\n\tbutton4.title = 'changed';\r\n})\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "MobileWeb: Incorrect work of contentOffset property in the scrollView object", "creator": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "subtasks": [], "reporter": { "name": "mvasko", "key": "mvasko", "displayName": "Misha Vasko", "active": true, "timeZone": "Europe/Kiev" }, "environment": null, "comment": { "comments": [ { "id": "410475", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T20:47:55.000+0000", "updated": "2017-03-09T20:47:55.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }