{ "id": "91979", "key": "TIMOB-9181", "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": [ { "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-15T14:27:44.000+0000", "created": "2012-05-18T05:41:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "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" }, "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 } } } }, { "id": "17539", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "92294", "key": "TIMOB-9226", "fields": { "summary": "Android: 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": "17329", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88286", "key": "TIMOB-8121", "fields": { "summary": "Android: Implement support for Ti.UI.INHERIT", "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": "17484", "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 } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-22T13:14:49.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "Related to TIMOB-8121, when parent view has dimension value set to SIZE and child view has FILL, the way that views will size themselves is undefined/unspecified. It seems that all platforms have some behavior defined. Because of that, this case should be specified so that all platform implement same behavior.\r\n\r\n\r\nCurrently, Mobile web in that situation looks for parent view that has dimension defined and size itself according to the size of that parent (it FILLs parent). IMHO, more intuitive behavior would be if parent would SIZE itself according to child size (if there is a child with fixed dimension value). \r\n\r\n\r\nFor example:\r\n\r\nWindow\r\n ParentView (SIZE)\r\n ChildView (FILL)\r\n View (50px)\r\n\r\nMy suggestion is that ParentView should have 50px (and ChildView also), while Mobile web solution would size ChildView to size of Window (and ParentView also).\r\n\r\nIt seems to me that parent elements should have priority in cases like this.\r\n\r\n{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}", "attachment": [ { "id": "28395", "filename": "Android vs. iOS.jpg", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T11:27:19.000+0000", "size": 62030, "mimeType": "image/jpeg" }, { "id": "28396", "filename": "MobileWeb.jpg", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T11:40:55.000+0000", "size": 22236, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Ti API: UI composite specification update", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "198712", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "iOS and MobileWeb have a correct layout for default horizontal wrap=true mode.\r\nAndroid should be fixed.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T11:42:35.000+0000", "updated": "2012-06-15T11:42:35.000+0000" }, { "id": "198764", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Now we have consistent horizontal behavior across all platforms. Android needs a fix for vertical positioning which is filed as TIMOB-9575", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-15T14:27:44.000+0000", "updated": "2012-06-15T14:27:44.000+0000" }, { "id": "199784", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Has anything been done with this issue? The comments above appear to be related to TIMOB-9575, not to the parent SIZE, child FILL conflict described in this bug.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-22T12:40:03.000+0000", "updated": "2012-06-22T12:40:03.000+0000" }, { "id": "199794", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Must have missed these comments the first time around. Arthur is correct, this ticket has nothing to do with horizontal layouts. This is as much a documentation issue as anything. We need to formally declare what the behavior is in a SIZE/FILL conflict.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-22T13:10:20.000+0000", "updated": "2012-06-22T13:10:20.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }