{ "id": "166884", "key": "TIMOB-24584", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-10-06T21:43:47.000+0000", "created": "2017-03-31T05:37:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-06T21:43:47.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": [], "description": "Setting horizontalWrap to true,'horizontalWrap=\"true\"' , doesn't seem to work when used in a ScrollView. \r\n\r\nSame setup works fine in a standard View. However, need to use ScrollView to make the page scroll vertically.\r\n\r\nPlease see the code examples. Change to to see the differences. \r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\r\n\r\n{code}\r\n\r\n{code:title=titanium app|borderStyle=solid}\r\nfunction createContent() {\r\n var wrapper = Ti.UI.createView({\r\n width: 50,\r\n height: 50,\r\n backgroundColor: 'pink',\r\n });\r\n return wrapper;\r\n}\r\n\r\nvar win = Ti.UI.createWindow({\r\n navBarHidden: true\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\n height: '100%',\r\n width: '100%',\r\n layout: 'horizontal',\r\n horizontalWrap: true,\r\n scrollingEnabled: true,\r\n scrollType: 'vertical'\r\n});\r\n\r\nwin.add(scrollView);\r\n\r\nfor (var i = 0; i < 10; ++i) {\r\n scrollView.add(createContent());\r\n}\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "61944", "filename": "Screen Shot 2017-03-31 at 16.37.06.png", "author": { "name": "isener", "key": "isener", "displayName": "ILAY SENER", "active": true, "timeZone": "Australia/Sydney" }, "created": "2017-03-31T05:37:26.000+0000", "size": 193618, "mimeType": "image/png" } ], "flagged": false, "summary": "horizontalWrap is not working in ScrollView", "creator": { "name": "isener", "key": "isener", "displayName": "ILAY SENER", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "isener", "key": "isener", "displayName": "ILAY SENER", "active": true, "timeZone": "Australia/Sydney" }, "environment": "MacOS X Sierra,\r\nAppC 4.8.1.201612050850\r\nAndroid Emulator \r\nTitanium SDK 6.0.2", "comment": { "comments": [ { "id": "417510", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Looks like an issue with the SDK, move to TIMOB.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-04-17T21:34:08.000+0000", "updated": "2017-04-17T21:34:08.000+0000" }, { "id": "428797", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not a bug.\r\n\r\nYou also need to set ScrollView property \"contentWidth\" to \"Ti.UI.FILL\", which sets the max horizontal size of the scrollable content area to the width of the ScrollView container. The default for \"contentWidth\" is AUTO, which causes the width of the content area to grow infinitely as you add views to the horizontal layout, and it'll never wrap because of this.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-06T21:43:29.000+0000", "updated": "2017-10-06T21:43:29.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }