{ "id": "98742", "key": "TIMOB-10330", "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": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14157", "description": "Sprint 2012-20 API", "name": "Sprint 2012-20 API", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-18T08:43:11.000+0000", "created": "2012-08-06T12:23:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "core", "module_scrollView", "qe-testadded" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21931", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "92436", "key": "TIMOB-11707", "fields": { "summary": "scrollableView height property set to Ti.UI.SIZE causes view to not display at all", "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" } }, "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": "2013-07-18T08:43:11.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": "h6.Problem\r\nIn ScrollView when we set 'layout' to 'Horizontal' content is being cut-off (iOS_iPad_MIDDLE.jpg) when it goes beyond the bottom of the device screen.\r\n\r\nThe customer relies on a such layout content that should use 'layout' to 'Horizontal' in ScrollView UI element, growing up according the height contents dynamically.\r\n\r\nh6.Stripped down simple sample\r\n{code}\r\nfunction createBlock(color) {\r\n\r\n\tvar view = Ti.UI.createView({\r\n\t\tbackgroundColor : color,\r\n\t\twidth : 400,\r\n\t\theight : 400,\r\n\t\tborderColor : \"white\"\r\n\t});\r\n\treturn view;\r\n}\r\n\r\nvar currentWindow = Ti.UI.createWindow();\r\n\r\nvar scrollView = Titanium.UI.createScrollView({\r\n\tbackgroundColor : 'red',\r\n\tcontentWidth : 'auto',\r\n\tcontentHeight : 'auto',\r\n\ttop : 0,\r\n\tshowVerticalScrollIndicator : true,\r\n\tshowHorizontalScrollIndicator : true,\r\n\tlayout:'horizontal'\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\twidth : 'auto',\r\n\theight : 'auto',\r\n\tlayout : 'vertical'\r\n});\r\n\r\nview.add(createBlock(\"blue\"));\r\nview.add(createBlock(\"orange\"));\r\nview.add(createBlock(\"green\"));\r\nview.add(createBlock(\"purple\"));\r\nview.add(createBlock(\"gray\"));\r\n\r\nscrollView.add(view);\r\n\r\ncurrentWindow.add(scrollView);\r\ncurrentWindow.open(); \r\n{code}", "attachment": [ { "id": "30301", "filename": "iOS_iPad_MIDDLE.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-06T12:23:21.000+0000", "size": 56016, "mimeType": "image/jpeg" }, { "id": "30300", "filename": "iOS_iPad_TOP.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-06T12:23:21.000+0000", "size": 57420, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: ScrollView: 'layout' to 'Horizontal' content is being cut-off", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 5.1\r\nTitanium SDK 2.0.2, 2.1.0, 2.2", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "222655", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3132", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-08T23:42:53.000+0000", "updated": "2012-10-08T23:42:53.000+0000" }, { "id": "222681", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-09T03:54:39.000+0000", "updated": "2012-10-09T03:54:39.000+0000" }, { "id": "225740", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears Release-2.1.4 not added properly.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T21:51:58.000+0000", "updated": "2012-10-31T21:51:58.000+0000" }, { "id": "225786", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.1.4.v20121030173408 on iPad 2 5.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-01T16:44:57.000+0000", "updated": "2012-11-01T16:44:57.000+0000" }, { "id": "262308", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening just to update label.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-18T08:37:35.000+0000", "updated": "2013-07-18T08:37:35.000+0000" }, { "id": "262310", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label.\r\nClosing as fixed.\r\nVerified with environment:\r\n\r\nStudio: 3.1.2.201307121617\r\nTitanium SDK: 3.1.2.v20130710144553\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:iPad Mini(v6.0) , Galaxy Nexus(4.0.4)\r\nXcode: 4.5.1\r\n\r\nScrollview working properly with layout horizontal, content are not cut.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-18T08:43:11.000+0000", "updated": "2013-07-18T08:43:11.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }