{ "id": "163321", "key": "TIMOB-23930", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-21T09:26:00.000+0000", "created": "2016-09-20T04:34:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "issuelinks": [ { "id": "52992", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160147", "key": "TIMOB-23350", "fields": { "summary": "Windows: ScrollView width/height should default to Ti.UI.FILL", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52993", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "160275", "key": "TIMOB-23384", "fields": { "summary": "Windows: Elements inside a ScrollView are centered.", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-21T16:06:41.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "ScrollView doesn't work properly according to sample code provided in the [API|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ScrollView]\r\n doc using SDK 5.5.0GA. It does not scroll to show the rest of the data.\r\n\r\n\r\n\r\n*Test Environment:*\r\n\r\nOperating System Microsoft Windows 8.1 Enterprise\r\nNode.js 0.12.7, npm Version 2.11.3\r\nAppcelerator CLI Installer 4.2.4, Core Package 5.2.2\r\n CLI Version 5.0.6,node-appc Version 0.2.31\r\nSDK-5.5.0.GA,Windows phone device(8.1)\r\n\r\n*Test code:*\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white'\r\n});\r\n\r\nif (Ti.UI.Android){\r\n win.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_ADJUST_PAN;\r\n}\r\n\r\nfunction createRow(i) {\r\n var row = Ti.UI.createView({\r\n backgroundColor: 'white',\r\n borderColor: '#bbb',\r\n borderWidth: 1,\r\n width:'100%', height: 70,\r\n top: 0, left: 0\r\n });\r\n var inputTextField = Ti.UI.createTextField({\r\n hintText: 'Enter value ' + i,\r\n keyboardType: Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION,\r\n top: 10, left: '10%',\r\n width: '80%', height: 60\r\n });\r\n row.add(inputTextField);\r\n return row;\r\n}\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n bottom:120,\r\n layout: 'vertical'\r\n});\r\n\r\nfor(var i = 0; i <= 20; i++){\r\nvar row = createRow(i);\r\n scrollView.add(row);\r\n}\r\nwin.add(scrollView);\r\n\r\nvar label = Ti.UI.createLabel({\r\n backgroundColor:'darkgray',\r\n text: 'Your advert here',\r\n textAlign: 'center',\r\n bottom:0,\r\n width: Titanium.UI.FILL,\r\n height:100\r\n});\r\nwin.add(label);\r\nwin.open();\r\n\r\n{code}\r\n\r\n*Test Steps:*\r\n\r\n* Create a classic project\r\n* Copy the sample code and run on Windows phone device(8.1)\r\n* Scrollview is not working as expected and does not scroll to show complete data.\r\n\r\n\r\nOutput: Check the [link|http://s12.postimg.org/l2i4hrbwd/wp_ss_20160920_0001.png].", "attachment": [], "flagged": false, "summary": "Windows: ScrollView doesn't load complete data", "creator": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Operating System Microsoft Windows 8.1 Enterprise\r\nNode.js 0.12.7, npm Version 2.11.3\r\nAppcelerator CLI Installer 4.2.4, Core Package 5.2.2\r\n CLI Version 5.0.6,node-appc Version 0.2.31\r\nSDK-5.5.0.GA,Windows phone device(8.1)", "closedSprints": [ { "id": 722, "state": "closed", "name": "2016 Sprint 20 SDK", "startDate": "2016-09-28T16:50:17.299Z", "endDate": "2016-10-12T16:50:00.000Z", "completeDate": "2016-10-10T06:17:01.016Z", "originBoardId": 114 }, { "id": 733, "state": "closed", "name": "2016 Sprint 21 SDK", "startDate": "2016-10-08T00:53:00.000Z", "endDate": "2016-10-22T00:53:00.000Z", "completeDate": "2016-10-24T03:58:08.547Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "397353", "author": { "name": "joef", "key": "joef", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am also seeing this, simple alloy test case here:\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n", "updateAuthor": { "name": "joef", "key": "joef", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-27T08:33:19.000+0000", "updated": "2016-09-27T08:35:02.000+0000" }, { "id": "398199", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this, started working on this. \r\n\r\nTemporary workaround for this would be: Set {{ScrollView.contentHeight}} manually.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'green'\r\n});\r\n\r\nfunction createRow(i) {\r\n var row = Ti.UI.createView({\r\n backgroundColor: 'blue',\r\n borderColor: '#bbb',\r\n borderWidth: 1,\r\n width: '100%', height: 70,\r\n top: 0, left: 0\r\n });\r\n var inputTextField = Ti.UI.createTextField({\r\n hintText: 'Enter value ' + i,\r\n keyboardType: Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION,\r\n top: 10, left: '10%',\r\n width: '80%', height: 60\r\n });\r\n row.add(inputTextField);\r\n return row;\r\n}\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n bottom: 120,\r\n layout: 'vertical'\r\n});\r\n\r\nvar contentHeight = 0;\r\nfor (var i = 0; i <= 20; i++) {\r\n var row = createRow(i);\r\n contentHeight += parseInt(row.height);\r\n scrollView.add(row);\r\n}\r\n\r\nscrollView.contentHeight = contentHeight;\r\n\r\nwin.add(scrollView);\r\n\r\nvar label = Ti.UI.createLabel({\r\n backgroundColor: 'darkgray',\r\n text: 'Your advert here',\r\n textAlign: 'center',\r\n bottom: 0,\r\n width: Titanium.UI.FILL,\r\n height: 100\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-06T02:36:45.000+0000", "updated": "2016-10-06T02:36:45.000+0000" }, { "id": "398223", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/876\r\n6_0_X: https://github.com/appcelerator/titanium_mobile_windows/pull/877\r\n\r\nI would like to merge this to 6_0_X because this is regression introduced in release 5.4.0.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-06T12:35:50.000+0000", "updated": "2016-10-06T12:35:50.000+0000" }, { "id": "399262", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~kota] If I explicitly set the scrollview to Ti.UI.FILL then it seems to keep with the behaviour of before. However on android it seems to work as expected \r\n\r\n{code}\r\nvar win = Ti.UI.createWindow(),\r\n scrollView = Ti.UI.createScrollView({\r\n layout: \"vertical\",\r\n backgroundColor: 'red',\r\n width: Ti.UI.FILL, height: Ti.UI.FILL,\r\n });\r\n \r\n \r\nfunction createRow(i) {\r\n var row = Ti.UI.createView({\r\n backgroundColor: 'blue',\r\n borderColor: '#bbb',\r\n top: 10,\r\n left: 10,\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE\r\n });\r\n var inputTextField = Ti.UI.createTextField({\r\n hintText: 'Enter value ' + i,\r\n keyboardType: Ti.UI.KEYBOARD_NUMBERS_PUNCTUATION\r\n });\r\n row.add(inputTextField);\r\n return row;\r\n}\r\n\r\nfor (var i = 0; i <= 20; i++) {\r\n var row = createRow(i);\r\n scrollView.add(row);\r\n}\r\n\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-10-18T15:52:20.000+0000", "updated": "2016-10-18T15:52:20.000+0000" }, { "id": "399328", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Confirmed explicitly setting {{Ti.UI.FILL}} reproduces this issue. Reopening.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-19T00:43:59.000+0000", "updated": "2016-10-19T00:43:59.000+0000" }, { "id": "399330", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "6_0_X: https://github.com/appcelerator/titanium_mobile_windows/pull/883\r\nmaster: https://github.com/appcelerator/titanium_mobile_windows/pull/884", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-19T01:05:44.000+0000", "updated": "2016-10-19T01:05:44.000+0000" }, { "id": "399587", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-63\r\nAppc NPM: 4.2.8-9\r\nTi SDK: 6.0.0.v20161021055155\r\n\r\nCode in description and example from previous comment now work as expected\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-10-21T16:06:37.000+0000", "updated": "2016-10-21T16:06:37.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }