{ "id": "92830", "key": "TIMOB-9386", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "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 } } }, "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13404", "description": "Sprint 2012-12 Core", "name": "Sprint 2012-12 Core", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-18T14:04:12.000+0000", "created": "2012-06-05T13:22:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "layout", "parity" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17644", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "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": "17670", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "92867", "key": "TIMOB-9410", "fields": { "summary": "MobileWeb: 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": "17854", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "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": "17836", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "93329", "key": "TIMOB-9575", "fields": { "summary": "Android: Default (horizontalWrap=true) horizontal layout centers children within rows", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T00:14: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*horizontalWrap:boolean* property will control warp/no-wrap (default is true)\r\n\r\n// all color boxes should be contained within one row (no wrapping)\r\n{code}\r\nvar win = Ti.UI.createWindow({ fullscreen: true, backgroundColor: 'white'});\r\n\r\nvar parent = Ti.UI.createView({backgroundColor:'red',layout:'horizontal', horizontalWrap: false, width:Ti.UI.SIZE, height:300})\r\n\r\nvar child1 =Ti.UI.createView({backgroundColor:'green',height:60,width:130});\r\nvar child2 =Ti.UI.createView({backgroundColor:'blue',height:120,width:170});\r\nvar child3 =Ti.UI.createView({backgroundColor:'#eee',height:120,width:50});\r\nvar child4 =Ti.UI.createView({backgroundColor:'#666',height:60,width:50});\r\n \r\nparent.add(child1);\r\nparent.add(child2);\r\nparent.add(child3);\r\nparent.add(child4);\r\n \r\nwin.add(parent);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "28425", "filename": "horizontalTextCases.txt", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T19:02:43.000+0000", "size": 2463, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Implement conditional horizontal layout wrapping", "creator": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "197791", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another test case with wrap enabled:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ fullscreen: true, backgroundColor: 'white'});\r\nvar parent = Ti.UI.createView({backgroundColor:'red',layout:'horizontal',width:300, height:500})\r\nvar child1 =Ti.UI.createView({backgroundColor:'green',height:60,width:150, bottom: 0});\r\nvar child2 =Ti.UI.createView({backgroundColor:'blue',height:120,width:120});\r\nvar child3 =Ti.UI.createView({backgroundColor:'#eee',height:120,width:150});\r\nvar child4 =Ti.UI.createView({backgroundColor:'#666',height:60,width:150, top: 0});\r\nvar child5 =Ti.UI.createView({backgroundColor:'yellow',height:20,width:150});\r\nvar child6 =Ti.UI.createView({backgroundColor:'purple',height:120,width:150});\r\n \r\nparent.add(child1);\r\nparent.add(child2);\r\nparent.add(child3);\r\nparent.add(child4);\r\nparent.add(child5);\r\nparent.add(child6);\r\n \r\nwin.add(parent);\r\nwin.open();\r\n{code}\r\n\r\n", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-07T17:21:25.000+0000", "updated": "2012-06-15T14:50:46.000+0000" }, { "id": "198770", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The above test case is misleading. Green child has bottom pin.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T14:46:33.000+0000", "updated": "2012-06-15T14:46:33.000+0000" }, { "id": "198772", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Removed the incorrect comments in the test case above. The bottom pin should force the green view to anchor to the bottom of that row.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T14:51:37.000+0000", "updated": "2012-06-15T14:51:37.000+0000" }, { "id": "198778", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have problems with the test cases attached.\r\n\r\nTest Case 1\r\nWhy would everything come in one row in landscape mode? With only left and right pins defined the green view is essentially following a fill behavior. Wouldn't it always occupy the first row irrespective of the orientation?\r\n\r\nTest Case 3\r\n// Top + Bottom with undefined height. The height of the green view should be constrained by the maximum height in that row, which is 120. i.e. the green view should not have fill behavior\r\nWhy is the maximum height of the row 120. The green view is again following FILL behavior. Its height should be parent height - (top+bottom). From the docs in the PR \"if both top and bottom are defined they are treated as padding.\" I am assuming that they are padding from the parent bounds.\r\n\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T15:05:00.000+0000", "updated": "2012-06-15T15:05:00.000+0000" }, { "id": "198795", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Test Case 1:\r\nMy mistake, that comment was meant for test case 2. I have moved it accordingly. You are right, the green view should fill the first row regardless of orientation.\r\n\r\nTest Case 2:\r\nThe parent view should be wide enough to fit child1- child3 in it. Since child3 has a height of 120, that is the maximum height for that row.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T16:32:01.000+0000", "updated": "2012-06-15T16:32:01.000+0000" }, { "id": "414698", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T00:14:51.000+0000", "updated": "2017-03-22T00:14:51.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }