{ "id": "80204", "key": "TIMOB-5266", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-06-12T19:20:38.000+0000", "created": "2011-09-12T08:07:14.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [], "issuelinks": [ { "id": "12730", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "63888", "key": "TIMOB-3256", "fields": { "summary": "iOS: \"Horizontal\" layout incorrectly wraps", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "17663", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "92829", "key": "TIMOB-9385", "fields": { "summary": "iOS: Implement conditional horizontal layout wrapping", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } }, { "id": "17561", "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": "16486", "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": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:20:12.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": "Currently, layout:\"horizontal\" works differently between Android and iOS, with Android placing each view to the right of the previous view _indefinitely_ and iOS placing in the same way until the views reach the right-hand edge of the screen, in which case the views is wrapped underneath. This is described in TIMOB-3256, which states (also confirmed by Don) that the intention is to fix the horizontal behavior in iOS and introduce a new \"flow\" layout that wraps views, just as iOS currently does.\r\n\r\nAs many of our developers rely on the current horizontal-flowing behavior on iOS (speak to Pedro about the number of solutions he has provided that use it), I have raised this ticket to track the progress of the new flow layout, and to insure that the flow layout is implemented *BEFORE* the current iOS behavior is removed, as otherwise this will cause many problems.\r\n\r\n{code:lang=javascript}\r\nvar win = Ti.UI.createWindow({\r\nbackgroundColor:\"black\",\r\nnavBarHidden:false,\r\ntitle:\"Main Window\"\r\n});\r\n\r\nvar scrollView = Ti.UI.createScrollView({\r\nbackgroundColor:'blue',\r\n layout:'horizontal'\r\n// layout:'flow'\r\n// layout:'vertical'\r\n});\r\n\r\nfor(var i=0;i<100;i++){\r\nvar view = Ti.UI.createView({\r\n backgroundColor:'green',\r\n width:94,\r\n height:94,\r\n top:10,\r\n left:10\r\n});\r\nscrollView.add(view);\r\n}\r\n\r\nwin.add(scrollView);\r\n\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Flow Layout", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "167568", "author": { "name": "marcwickens", "key": "marcwickens", "displayName": "Marc Wickens", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, was wondering - has a decision been made on this yet?", "updateAuthor": { "name": "marcwickens", "key": "marcwickens", "displayName": "Marc Wickens", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-03T01:51:03.000+0000", "updated": "2011-10-03T01:51:03.000+0000" }, { "id": "198245", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The horizontal layout wrapping is addressed at TIMOB-9385", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-12T15:14:13.000+0000", "updated": "2012-06-12T15:14:13.000+0000" }, { "id": "198256", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate: reference TIMOB-9385", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-12T15:47:30.000+0000", "updated": "2012-06-12T15:47:30.000+0000" }, { "id": "414085", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:20:12.000+0000", "updated": "2017-03-20T22:20:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }