{ "id": "63888", "key": "TIMOB-3256", "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": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-30T14:28:43.000+0000", "created": "2011-04-15T03:40:35.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "qe-port" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "12730", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "80204", "key": "TIMOB-5266", "fields": { "summary": "iOS: Flow Layout", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "12729", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "80205", "key": "TIMOB-5267", "fields": { "summary": "Android: Flow Layout", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "17560", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92293", "key": "TIMOB-9225", "fields": { "summary": "iOS: Review composite layout feature requests", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "16485", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "89809", "key": "TIMOB-8673", "fields": { "summary": "Ti API: Horizontal Layout Modes do not match.", "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": "High", "id": "2" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-28T02:53:51.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": "h2. Problem\r\nOn iOS, when you have a view with a layout: 'horizontal' and the content exceeds the width of the view, new content is wrapped onto the next line (attached image demonstrates). This should be the behavior for a layout: 'flow', not 'horizontal'.\r\n\r\nh2. Sample Code\r\n\r\n\r\n{code:lang=javascript}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\n\r\nvar scroll = Ti.UI.createScrollView({\r\n contentHeight: 'auto',\r\n layout: 'horizontal',\r\n left: 20, right: 20\r\n});\r\nfor (var i = 0; i < 81; i++) {\r\n scroll.add(Ti.UI.createImageView({\r\n image: 'http://www.appcelerator.com/wp-content/themes/appcelerator/img/ti-logo.png',\r\n height: 30, width: 72,\r\n top: 20, left: 20\r\n }));\r\n}\r\nwin.add(scroll);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. Workaround\r\nDon't use layout at all. Instead, calculate the left of each item as it is added to the view.\r\n\r\nh2. Tested On\r\nTitanium SDK version: 1.6.0 (02/23/11 12:34 9882e81)\r\n\r\nBROKEN on iOS Simulator 4.2\r\nBROKEN on iPod Touch 4.2\r\nWORKS on Android Simulator 2.2 APIs\r\nWORKS on Android Device EPIC 4G 2.2\r\nh2. Associated Helpdesk Ticket\r\nThere is no associated helpdesk ticket for this, but I did uncover this in a company sanctioned sample app.", "attachment": [ { "id": "18288", "filename": "screen-shot-2011-03-03-at-100846-am.png", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T03:40:36.000+0000", "size": 121661, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: \"Horizontal\" layout incorrectly wraps", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "130399", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Reassigning to Stephen to merge with other layout work\ntentatively scheduled for Sprint 13.

{html}", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:36.000+0000", "updated": "2011-04-15T03:40:36.000+0000" }, { "id": "130400", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

adding release-1.7.0 tag so it doesn't get lost for release\nnotes.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:40:37.000+0000", "updated": "2011-04-15T03:40:37.000+0000" }, { "id": "132900", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a bug in iOS, horizontal layout is not a flow layout.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-27T21:57:38.000+0000", "updated": "2011-04-27T21:57:38.000+0000" }, { "id": "132908", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Updated so it is clear this is an iOS bug, and not a feature request for Android to misbehave the same way.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-28T08:07:13.000+0000", "updated": "2011-04-28T08:07:13.000+0000" }, { "id": "189756", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "It's likely this has been dealt with by the layout updates.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-03T22:39:12.000+0000", "updated": "2012-04-03T22:39:12.000+0000" }, { "id": "196581", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed by composite layout updates. Same behavior on iOS and Android.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-30T14:28:43.000+0000", "updated": "2012-05-30T14:36:13.000+0000" }, { "id": "216397", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120827143312\r\nStudio:2.1.2.201208201549\r\nDevices: iOS simulator, iPhone 3GS\r\n\r\nHorizontal layout wraps correctly", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-28T02:53:51.000+0000", "updated": "2012-08-28T02:53:51.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }