{ "id": "87012", "key": "TIMOB-7819", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-03T17:33:26.000+0000", "created": "2012-02-27T09:08:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_view", "parity", "qe-testadded" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "15728", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "86454", "key": "TIMOB-7643", "fields": { "summary": "Android: Implement the UI Composite Layout Behavior Spec", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "15428", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87082", "key": "TIMOB-7836", "fields": { "summary": "Android: View - height:'auto' causing view to be placed at the top of its parent rather than centering in the parent", "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": "15429", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87083", "key": "TIMOB-7837", "fields": { "summary": "Android: View - height:'auto' causing child view to not be displayed", "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": "2012-05-03T17:33:26.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": "View does not resize correctly when height set to 'auto'. It should contract to the size of its children.\r\niPhone works correctly. See attached screenshot.\r\n\r\nh4. Steps to reproduce:\r\nStep 1: run the code below.\r\nStep 2: notice that the second red block fills the bottom of the screen. It should only be ass tall as its child label as it is on the iphone in the attached screenshot.\r\n\r\n{code:title=app.sj}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwin.open();\r\n\r\nvar view1 = Ti.UI.createView({\r\n\ttop: 10,\r\n\theight: 100,\r\n\tbackgroundColor: 'red',\r\n});\r\nvar label1 = Ti.UI.createLabel({\r\n\ttext: 'Static',\r\n\theight: 'auto',\r\n\twidth: 'auto',\r\n\tbackgroundColor: 'yellow',\r\n});\r\n\r\nvar view3 = Ti.UI.createView({\r\n\ttop: 120,\r\n\theight: 'auto',\r\n\tbackgroundColor: 'red',\r\n});\r\nvar label2 = Ti.UI.createLabel({\r\n\ttext: 'Auto',\r\n\theight: 'auto',\r\n\twidth: 'auto',\r\n\tbackgroundColor: 'yellow',\r\n});\r\n\r\nwin.add(view1);\r\nview1.add(label1);\r\n\r\nwin.add(view3);\r\nview3.add(label2);\r\n{code}", "attachment": [ { "id": "25918", "filename": "view-height-auto.jpg", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-27T09:08:27.000+0000", "size": 47261, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: View - height:'auto' causing view to expand rather than contract to the size of its children", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.8.1, V8\r\nTiSDK 1.8.2 (02/23/12 17:46 59b3a90), V8\r\nAndroid Emulator 2.3.3", "comment": { "comments": [ { "id": "186335", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This has been fixed as a part of the composite layout behavior spec (https://wiki.appcelerator.org/display/guides2/UI+Composite+Layout+Behavior+Spec) . Views should have the fill behavior by default. So the android behavior as specified in this bug is the correct behavior and the new behavior in iOS matches this as well.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-13T15:59:51.000+0000", "updated": "2012-03-13T15:59:51.000+0000" }, { "id": "186857", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120316124800\r\nRuntime: v8, rhino\r\nTitanium Studio, build: 2.0.0.201203152033\r\nDevice: Nexus S (2.3.6)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-16T13:11:44.000+0000", "updated": "2012-03-16T13:11:44.000+0000" }, { "id": "193461", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Open to update label", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-02T11:51:34.000+0000", "updated": "2012-05-02T11:51:34.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }