{ "id": "93329", "key": "TIMOB-9575", "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": "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-18T15:05:40.000+0000", "created": "2012-06-15T11:56:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_views", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17835", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "91979", "key": "TIMOB-9181", "fields": { "summary": "Ti API: UI composite specification update", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "17870", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "91296", "key": "TIMOB-8980", "fields": { "summary": "Android: Horizontal layout should provide consistent behavior when 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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "17836", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "92830", "key": "TIMOB-9386", "fields": { "summary": "Android: 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 } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-13T13:45: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": "{code}\r\nvar Window = Ti.UI.createWindow({ fullscreen: true, backgroundColor: 'white'});\r\n \r\nvar ParentView = Ti.UI.createView({backgroundColor:'red',layout:'horizontal', width: Ti.UI.SIZE, height:300})\r\n \r\nvar ChildView =Ti.UI.createView({backgroundColor:'green',layout:'horizontal', height:200, width: Ti.UI.FILL });\r\nvar View =Ti.UI.createView({backgroundColor:'blue',height:120, width:50 });\r\nvar View2 =Ti.UI.createView({backgroundColor:'yellow',height:120, width:50 });\r\n\r\nChildView.add(View);\r\nChildView.add(View2);\r\nParentView.add(ChildView);\r\nWindow.add(ParentView);\r\nWindow.open();\r\n{code}\r\n\r\n*Expected:*\r\nSee iOS/MobileWeb snapshots\r\n\r\n*Actual:*\r\nSee Android snapshot", "attachment": [ { "id": "28397", "filename": "Android vs. iOS.jpg", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T11:56:05.000+0000", "size": 62030, "mimeType": "image/jpeg" }, { "id": "28398", "filename": "MobileWeb.jpg", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T11:56:05.000+0000", "size": 22236, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: Default (horizontalWrap=true) horizontal layout centers children within rows", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "198856", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This will be resolved as a part of https://github.com/appcelerator/titanium_mobile/pull/2368", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-17T19:33:37.000+0000", "updated": "2012-06-17T19:33:37.000+0000" }, { "id": "198940", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The child views here have no top or bottom pins, so previous Android behavior seems correct, and the iOS/Mobile Web behavior is inconsistent with the way we handle positioning in normal views.\r\n\r\nGiven the Android behavior, it's trivial to achieve top positioning (set top = 0 on the child views), but given the iOS/Mobile Web behavior, I don't see an easy way to achieve the centered positioning. \r\n\r\n", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T11:36:58.000+0000", "updated": "2012-06-18T11:36:58.000+0000" }, { "id": "198962", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FWIW, we actually center the views like we do in android here when horizontalWrap is set to false.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T13:36:49.000+0000", "updated": "2012-06-18T13:36:49.000+0000" }, { "id": "198983", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified to be fixed by PR 2368", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T15:05:40.000+0000", "updated": "2012-06-18T15:05:40.000+0000" }, { "id": "199899", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with\r\n\r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\nDevice: Nexus S 4.0.4\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T11:26:24.000+0000", "updated": "2012-06-23T11:26:24.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }