{ "id": "173940", "key": "TIMOB-27283", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-02T15:28:45.000+0000", "created": "2019-07-26T15:51:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "event", "parity", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-10-02T15:28:45.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": "Parity for contentSize inside the scroll event of a ScrollView. iOS has this since 5.2.0.\r\n\r\n*Example:*\r\n\r\n{code:java}\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: '#fff'});\r\nvar view1 = Ti.UI.createView({width:20,height:1020,backgroundColor:\"#f00\",top:0});\r\nvar scrollView = Ti.UI.createScrollView({height:Ti.UI.FILL,width:Ti.UI.FILL});\r\nvar ldi = Ti.Platform.displayCaps.logicalDensityFactor;\r\nscrollView.addEventListener(\"scroll\",function(e){\r\n\tconsole.log(\"contentSize\", e.contentSize);\r\n})\r\nwin.add(scrollView);\r\nscrollView.add(view1);\r\n\r\nwin.open();\r\n{code}\r\n\r\nWill output height: 1020 (height of the red view) and your screen width.", "attachment": [], "flagged": false, "summary": "Android: Add \"contentSize\" property to Ti.UI.ScrollView \"scroll\" event", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "450087", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11082", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-07-26T15:51:18.000+0000", "updated": "2019-07-26T15:51:18.000+0000" }, { "id": "451187", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed.Waiting on Jenkins", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-06T22:24:58.000+0000", "updated": "2019-09-06T22:24:58.000+0000" }, { "id": "451228", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 8.3.0 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-09-09T18:59:15.000+0000", "updated": "2019-09-09T18:59:15.000+0000" }, { "id": "451766", "author": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Improvement verified in SDK version 8.3.0.v20191001072347. Ble to see the following in the console:\r\n\r\n{code:java}\r\n {\"width\":411,\"height\":1020}\r\n{code}\r\n", "updateAuthor": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-02T15:28:12.000+0000", "updated": "2019-10-02T15:28:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }